editeng/source/editeng/editobj.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit cd9bb2dfcf07e5274be85e6a8906056ab08a1ca3 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Thu Dec 2 15:10:10 2021 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Dec 2 21:14:38 2021 +0100 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 <vmik...@collabora.com> Tested-by: Jenkins 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<maCharAttribs.size(); ++i)