summaryrefslogtreecommitdiff
path: root/sw
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
commit98b8db50c945cd9a2bbbf6e1b1589d6603981fcb (patch)
tree5268018c67ca32f0aeba6417428c3749c2e642ac /sw
parentaafce5802165dc55814f98102e1a713f6054c7f3 (diff)
Add a comment based on the Caolan's explanation.
Diffstat (limited to 'sw')
-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 c02b5ed16c4c..fddea0304f6e 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 );