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.

(cherry picked from commit 1cca9733d6)
This commit is contained in:
Joshua Goins
2024-11-16 16:02:12 -05:00
parent 8ab0002057
commit a90e9ae92a

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'');
}