summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2014-05-23 11:35:10 +0200
committerAndras Timar <andras.timar@collabora.com>2014-05-28 03:50:34 -0700
commit5fb84086fb4b111b5e77ef29b436719d8742681a (patch)
tree6dbcfaf6922e1e259f861e52cf94fb577d63cf25
parent700b8ece45645ba7af7391a0522a2d4bd967c909 (diff)
MSWord uses \xb for linebreaks in DB fields (bnc#878854)
Change-Id: I9b1e4f8dc44d3f6f41e395f6e5f3c1fdeff52441
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index 1f4d9e838783..7dba6485da75 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -2486,6 +2486,8 @@ eF_ResT SwWW8ImplReader::Read_F_DBField( WW8FieldDesc* pF, String& rStr )
pSBase->WW8ReadString( *pStrm, aResult, pPlcxMan->GetCpOfs()+
pF->nSRes, pF->nLRes, eTextCharSet );
+ aResult = aResult.replace( '\xb', '\n' );
+
aFld.InitContent(aResult);
rDoc.InsertPoolItem(*pPaM, SwFmtFld( aFld ), 0);