sw/source/filter/ww8/rtfexport.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
New commits: commit 0fcd27f28aea1c850c8d8f11485b6a5d9bb974ea Author: Miklos Vajna <vmik...@suse.cz> Date: Tue Apr 24 12:47:16 2012 +0200 fdo#38176 fix RTF export of non-breaking space/hyphen/optional hyphen (cherry-picked from commits ef7cc64 and dfc7c67) Signed-off-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx index 195cb8e..0904ac8 100644 --- a/sw/source/filter/ww8/rtfexport.cxx +++ b/sw/source/filter/ww8/rtfexport.cxx @@ -914,7 +914,15 @@ OString RtfExport::OutChar(sal_Unicode c, int *pUCMode, rtl_TextEncoding eDestEn } if (pStr) { aBuf.append(pStr); - aBuf.append(' '); + switch (c) + { + case 0xa0: + case 0x1e: + case 0x1f: + break; + default: + aBuf.append(' '); + } } return aBuf.makeStringAndClear(); }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits