diff --git a/autotests/texthandlertest.cpp b/autotests/texthandlertest.cpp index 1ea1487e8..47fb473a3 100644 --- a/autotests/texthandlertest.cpp +++ b/autotests/texthandlertest.cpp @@ -530,6 +530,9 @@ void TextHandlerTest::componentOutput_data() QTest::newRow("quote") << u"
Text
\n\n"_s << QListblockquote
\n
\n"_s + << QListblockquote
\nnext paragraph
\n
“blockquote
\nnext paragraph”
"_s, {}}}; QTest::newRow("no tag first paragraph") << u"Text\nText
"_s << QList"_s)) { - string.remove(0, string.indexOf(u'>') + 1); - string.remove(string.indexOf(u"
"_s), string.size()); + startQuotationIndex = string.indexOf(u">") + 1; + endQuotationIndex = string.lastIndexOf(u"") + 1; } + // This is not a normal quotation mark but U+201C - if (!string.startsWith(u'“')) { - string.prepend(u'“'); - } + string.insert(startQuotationIndex, u'“'); // This is U+201D - if (!string.endsWith(u'”')) { - string.append(u'”'); - } + string.insert(endQuotationIndex, u'”'); } return string;