do not capitalize letter right after the apostrophe

master
Andrzej Rybczak 17 years ago
parent 774dbaf859
commit c6926be931
  1. 2
      src/tag_editor.cpp

@ -1007,7 +1007,7 @@ std::string TagEditor::CapitalizeFirstLetters(const string &s)
result[0] = toupper(result[0]);
for (string::iterator it = result.begin()+1; it != result.end(); it++)
{
if (isalpha(*it) && !isalpha(*(it-1)))
if (isalpha(*it) && !isalpha(*(it-1)) && *(it-1) != '\'')
*it = toupper(*it);
}
return result;

Loading…
Cancel
Save