summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-12-02 15:10:10 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-12-02 21:14:38 +0100
commitcd9bb2dfcf07e5274be85e6a8906056ab08a1ca3 (patch)
treee0eaf9f3442ce2f60811e70b95e89318e49efd2c /editeng/source
parentdfdf33a34729de7f256ed396be93fb96b4844404 (diff)
editeng: avoid non-ascii characters in the source of ContentInfo::dumpAsXml()
And map ^A to &#1;, the &#9; was a copy&paste error. Change-Id: I4e9af635dda83530ba53fa58f0140465b7cbd4ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126248 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/editeng/editobj.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx
index 62ed45b20988..4e29bf941e5f 100644
--- a/editeng/source/editeng/editobj.cxx
+++ b/editeng/source/editeng/editobj.cxx
@@ -149,7 +149,7 @@ void ContentInfo::dumpAsXml(xmlTextWriterPtr pWriter) const
(void)xmlTextWriterStartElement(pWriter, BAD_CAST("text"));
OUString aText = GetText();
// TODO share code with sax_fastparser::FastSaxSerializer::write().
- (void)xmlTextWriterWriteString(pWriter, BAD_CAST(aText.replaceAll("", "&#9;").toUtf8().getStr()));
+ (void)xmlTextWriterWriteString(pWriter, BAD_CAST(aText.replaceAll("\x01", "&#1;").toUtf8().getStr()));
(void)xmlTextWriterEndElement(pWriter);
aParaAttribs.dumpAsXml(pWriter);
for (size_t i=0; i<maCharAttribs.size(); ++i)