From a90e9ae92a3db9ef8a5d7114486be6418a686a41 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 16 Nov 2024 16:02:12 -0500 Subject: [PATCH] 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 1cca9733d6bf81fa96f22b5ee0808cf412006dc9) --- src/texthandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/texthandler.cpp b/src/texthandler.cpp index 2f818534c..3c234b5b4 100644 --- a/src/texthandler.cpp +++ b/src/texthandler.cpp @@ -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("

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