Add a comment that these are not normal quotation marks

It can be hard to tell depending on which font you're viewing the code
with.
This commit is contained in:
Joshua Goins
2024-11-16 16:02:12 -05:00
parent 1104da5e2c
commit 1cca9733d6

View File

@@ -413,9 +413,11 @@ QString TextHandler::stripBlockTags(QString string, const QString &tagType) cons
string.remove(0, string.indexOf(u'>') + 1);
string.remove(string.indexOf(QLatin1String("</p>")), string.size());
}
// This is not a normal quotation mark but U+201C
if (!string.startsWith(u'')) {
string.prepend(u'');
}
// This is U+201D
if (!string.endsWith(u'')) {
string.append(u'');
}