summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-18 02:07:58 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-07-06 15:58:52 +0000
commit3004221e47918eb08cfa98ba43a23a0b25412cd5 (patch)
treee9e4b251b0ec03ec0d274c42c608a8acd1335cb7
parent2b26c1796d0a05f47cfb01d79ee4f69344efbbb2 (diff)
preserve whitespaces here, tdf#88137, tdf#89254
Change-Id: Ieabb075b1e324792726a6c67949fbf3e7127615d Reviewed-on: https://gerrit.libreoffice.org/15375 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/filter/excel/xestring.cxx3
1 files changed, 2 insertions, 1 deletions
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 );
}