summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-08-06 01:52:19 +0200
committerJan Holesovsky <kendy@suse.cz>2011-08-06 01:52:19 +0200
commit17cfd534d10d7394679978e04a95543793f99e99 (patch)
tree7f254b7ed1fbc7eaaf5bfa4441ed7cadcbf2e0cf
parent607f7c2dd2549e979087f026da03a3310292f374 (diff)
Add a comment based on the Caolan's explanation.
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index a1045c4cb7..608c44395a 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -808,6 +808,8 @@ void DocxAttributeOutput::EndField_Impl( FieldInfos& rInfos )
m_pSerializer->startElementNS( XML_w, XML_r, FSEND );
String sExpand( rInfos.pField->ExpandField( true ) );
+ // newlines embedded in fields are 0x0B in MSO and 0x0A for us
+ // [maybe this is not necessary in docx, but safer to do]
sExpand.SearchAndReplaceAll( 0x0A, 0x0B );
RunText( sExpand );