Blame SOURCES/0004-Support-apos-in-styled-text.patch

77f9a9
From bac7823a97ab901abc8da392ba23747feac4c933 Mon Sep 17 00:00:00 2001
77f9a9
From: Albert Astals Cid <albert.astals.cid@kdab.com>
77f9a9
Date: Fri, 21 May 2021 13:42:35 +0200
77f9a9
Subject: [PATCH 04/20] Support ' in styled text
77f9a9
77f9a9
Pick-to: 6.1 5.15
77f9a9
Change-Id: I4a8db963e52a7899ab1796f9a560e8029cc1c929
77f9a9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
77f9a9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
77f9a9
(cherry picked from commit 96b528efcba1226d2980828d1255160bdceae4cf)
77f9a9
---
77f9a9
 src/quick/items/qquicktext.cpp      | 2 +-
77f9a9
 src/quick/util/qquickstyledtext.cpp | 2 ++
77f9a9
 2 files changed, 3 insertions(+), 1 deletion(-)
77f9a9
77f9a9
diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp
77f9a9
index 43c29d1f58..459dea8f74 100644
77f9a9
--- a/src/quick/items/qquicktext.cpp
77f9a9
+++ b/src/quick/items/qquicktext.cpp
77f9a9
@@ -2168,7 +2168,7 @@ void QQuickText::resetMaximumLineCount()
77f9a9
      - inline images
77f9a9
     
    ,
      and
    • - ordered and unordered lists
77f9a9
     
 - preformatted
77f9a9
-    > < & "  
77f9a9
+    > < & "   '
77f9a9
     \endcode
77f9a9
 
77f9a9
     \c Text.StyledText parser is strict, requiring tags to be correctly nested.
77f9a9
diff --git a/src/quick/util/qquickstyledtext.cpp b/src/quick/util/qquickstyledtext.cpp
77f9a9
index d531fc9205..a25af90414 100644
77f9a9
--- a/src/quick/util/qquickstyledtext.cpp
77f9a9
+++ b/src/quick/util/qquickstyledtext.cpp
77f9a9
@@ -564,6 +564,8 @@ void QQuickStyledTextPrivate::parseEntity(const QChar *&ch, const QString &textI
77f9a9
                 textOut += QChar(60);
77f9a9
             else if (entity == QLatin1String("amp"))
77f9a9
                 textOut += QChar(38);
77f9a9
+            else if (entity == QLatin1String("apos"))
77f9a9
+                textOut += QChar(39);
77f9a9
             else if (entity == QLatin1String("quot"))
77f9a9
                 textOut += QChar(34);
77f9a9
             else if (entity == QLatin1String("nbsp"))
77f9a9
-- 
77f9a9
2.35.1
77f9a9