[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Wed May 2 04:09:52 PDT 2012


 sw/source/filter/ww8/rtfexport.cxx |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 0fcd27f28aea1c850c8d8f11485b6a5d9bb974ea
Author: Miklos Vajna <vmiklos at 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 <caolanm at 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();
 }


More information about the Libreoffice-commits mailing list