diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-08-06 01:52:19 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-08-06 01:52:19 +0200 |
commit | 98b8db50c945cd9a2bbbf6e1b1589d6603981fcb (patch) | |
tree | 5268018c67ca32f0aeba6417428c3749c2e642ac /sw | |
parent | aafce5802165dc55814f98102e1a713f6054c7f3 (diff) |
Add a comment based on the Caolan's explanation.
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 2 |
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 ); |