From 32ae1ed7504d58f9216593cb87f25c480a0e623b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 19 Nov 2021 13:44:40 +0100 Subject: PPTX import: handle We had doc model for this, but the UNO API and the PPTX import was missing. Change-Id: I199e9cc235a783d91700ce74f17d442f41d3c3f8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125532 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- editeng/source/editeng/editobj.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editeng') diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index 6e0982b27dc0..62ed45b20988 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -147,7 +147,9 @@ void ContentInfo::dumpAsXml(xmlTextWriterPtr pWriter) const (void)xmlTextWriterStartElement(pWriter, BAD_CAST("ContentInfo")); (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("style"), BAD_CAST(aStyle.toUtf8().getStr())); (void)xmlTextWriterStartElement(pWriter, BAD_CAST("text")); - (void)xmlTextWriterWriteString(pWriter, BAD_CAST(GetText().toUtf8().getStr())); + OUString aText = GetText(); + // TODO share code with sax_fastparser::FastSaxSerializer::write(). + (void)xmlTextWriterWriteString(pWriter, BAD_CAST(aText.replaceAll("", " ").toUtf8().getStr())); (void)xmlTextWriterEndElement(pWriter); aParaAttribs.dumpAsXml(pWriter); for (size_t i=0; i