From cd9bb2dfcf07e5274be85e6a8906056ab08a1ca3 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 2 Dec 2021 15:10:10 +0100 Subject: editeng: avoid non-ascii characters in the source of ContentInfo::dumpAsXml() And map ^A to , the was a copy&paste error. Change-Id: I4e9af635dda83530ba53fa58f0140465b7cbd4ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126248 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- editeng/source/editeng/editobj.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editeng/source') 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("", " ").toUtf8().getStr())); + (void)xmlTextWriterWriteString(pWriter, BAD_CAST(aText.replaceAll("\x01", "").toUtf8().getStr())); (void)xmlTextWriterEndElement(pWriter); aParaAttribs.dumpAsXml(pWriter); for (size_t i=0; i