From 3004221e47918eb08cfa98ba43a23a0b25412cd5 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 18 Apr 2015 02:07:58 +0200 Subject: preserve whitespaces here, tdf#88137, tdf#89254 Change-Id: Ieabb075b1e324792726a6c67949fbf3e7127615d Reviewed-on: https://gerrit.libreoffice.org/15375 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- sc/source/filter/excel/xestring.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc/source/filter/excel/xestring.cxx b/sc/source/filter/excel/xestring.cxx index 3388048336c7..1404e18ca4a5 100644 --- a/sc/source/filter/excel/xestring.cxx +++ b/sc/source/filter/excel/xestring.cxx @@ -413,7 +413,8 @@ void XclExpString::WriteXml( XclExpXmlStream& rStrm ) const if( !IsWriteFormats() ) { - rWorksheet->startElement( XML_t, FSEND ); + rWorksheet->startElement( XML_t, + FSNS(XML_xml, XML_space), "preserve", FSEND ); rWorksheet->writeEscaped( XclXmlUtils::ToOUString( *this ) ); rWorksheet->endElement( XML_t ); } -- cgit v1.2.3