sc/source/filter/excel/xeescher.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 47e2188d4bab1509d059c4df53df7f49324bea2d Author: Noel Grandin <[email protected]> AuthorDate: Wed Nov 5 10:58:49 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Wed Nov 5 17:35:30 2025 +0100 mso-test: escape text of a:t element This is using the test document from tdf 111408-1.odt. When importing and exporting to XLSX, we end up with an unescaped "&" character. Change-Id: I25e8952049cc0f9665030b46e7d29d2397d9f9bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193448 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx index d9bc7f3ea56d..7ea8f6a685f5 100644 --- a/sc/source/filter/excel/xeescher.cxx +++ b/sc/source/filter/excel/xeescher.cxx @@ -1370,7 +1370,7 @@ void XclExpTbxControlObj::SaveXml( XclExpXmlStream& rStrm ) pDrawing->startElementNS(XML_a, XML_p); pDrawing->startElementNS(XML_a, XML_r); pDrawing->startElementNS(XML_a, XML_t); - pDrawing->write(msLabel); + pDrawing->writeEscaped(msLabel); pDrawing->endElementNS(XML_a, XML_t); pDrawing->endElementNS(XML_a, XML_r); pDrawing->endElementNS(XML_a, XML_p);
