Commit fb85b0f5 authored by Michael Pyne's avatar Michael Pyne

Fix bug 82910 (tag guesser leaves spaces in front of tags), by adding

stripWhiteSpace() calls as appropriate.  It seemed easier than fixing the
regular expressions. :-)

CCMAIL:82910-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=318976
parent 4e0ec610
......@@ -187,12 +187,12 @@ void TagGuesser::guess(const QString &absFileName)
for (; it != end; ++it) {
const FileNameScheme schema(*it);
if(schema.matches(absFileName)) {
m_title = capitalizeWords(schema.title().replace('_', " "));
m_artist = capitalizeWords(schema.artist().replace('_', " "));
m_album = capitalizeWords(schema.album().replace('_', " "));
m_track = schema.track();
m_comment = schema.comment().replace('_', " ");
break;
m_title = capitalizeWords(schema.title().replace('_', " ")).stripWhiteSpace();
m_artist = capitalizeWords(schema.artist().replace('_', " ")).stripWhiteSpace();
m_album = capitalizeWords(schema.album().replace('_', " ")).stripWhiteSpace();
m_track = schema.track().stripWhiteSpace();
m_comment = schema.comment().replace('_', " ").stripWhiteSpace();
break;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment