summaryrefslogtreecommitdiff
diff options
authorDamjan Jovanovic <damjan@apache.org>2023-01-03 08:41:13 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-03-20 14:45:17 +0000
commit28341f0b107b7bcd1377cec68c90eee9c4f27e1c (patch)
tree1c19e39debf18630e5f3138fdc2d152ae43b6794
parentd0159892793860e53ddc068b4bdb707a521def19 (diff)
tdf#154273: Add the "&apos;" entity definition to our HTML parser...
... so that we can correctly read it and convert it a "'", but when writing to HTML write out the "'" directly for now. Fixes: https://bz.apache.org/ooo/show_bug.cgi?id=80657 Patch by: me Cherry-picked from https://github.com/apache/openoffice/commit/3304210c5c53f441cdb2c462fbbf6d8351380b01 "Add the "&apos;" entity definition to our HTML parser, so that we can…" Change-Id: I10d07af5f49d2432d99a79318d9d95b0bc976637 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149150 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--include/svtools/htmlkywd.hxx1
-rw-r--r--svtools/source/svhtml/htmlkywd.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/svtools/htmlkywd.hxx b/include/svtools/htmlkywd.hxx
index 9a84cddd37bf..cdcee168acba 100644
--- a/include/svtools/htmlkywd.hxx
+++ b/include/svtools/htmlkywd.hxx
@@ -150,6 +150,7 @@
#define OOO_STRING_SVTOOLS_HTML_C_lt "lt"
#define OOO_STRING_SVTOOLS_HTML_C_gt "gt"
#define OOO_STRING_SVTOOLS_HTML_C_amp "amp"
+#define OOO_STRING_SVTOOLS_HTML_C_apos "apos"
#define OOO_STRING_SVTOOLS_HTML_C_quot "quot"
#define OOO_STRING_SVTOOLS_HTML_C_Aacute "Aacute"
#define OOO_STRING_SVTOOLS_HTML_C_Agrave "Agrave"
diff --git a/svtools/source/svhtml/htmlkywd.cxx b/svtools/source/svhtml/htmlkywd.cxx
index 584322fac8bc..5f81b3e3ca30 100644
--- a/svtools/source/svhtml/htmlkywd.cxx
+++ b/svtools/source/svhtml/htmlkywd.cxx
@@ -203,6 +203,7 @@ static HTML_CharEntry aHTMLCharNameTab[] = {
{std::u16string_view(u"" OOO_STRING_SVTOOLS_HTML_C_lt), 60},
{std::u16string_view(u"" OOO_STRING_SVTOOLS_HTML_C_gt), 62},
{std::u16string_view(u"" OOO_STRING_SVTOOLS_HTML_C_amp), 38},
+ {std::u16string_view(u"" OOO_STRING_SVTOOLS_HTML_C_apos), 39},
{std::u16string_view(u"" OOO_STRING_SVTOOLS_HTML_C_quot), 34},
{std::u16string_view(u"" OOO_STRING_SVTOOLS_HTML_C_Agrave), 192},
close