[Libreoffice-commits] dev-tools.git: scripts/rtf-anonymiser.py

Miklos Vajna vmiklos at suse.cz
Tue Jun 11 00:40:07 PDT 2013


 scripts/rtf-anonymiser.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 31d92501bc8738009884f818bc1beb8c96b7fe51
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Tue Jun 11 09:39:46 2013 +0200

    rtf-anonymiser: no need to replace spaces
    
    Change-Id: I6c05ba2f0bf0d9173a54309e9c56e1db7eebb90e

diff --git a/scripts/rtf-anonymiser.py b/scripts/rtf-anonymiser.py
index de8a596..d505389 100755
--- a/scripts/rtf-anonymiser.py
+++ b/scripts/rtf-anonymiser.py
@@ -85,7 +85,9 @@ class RtfAnonymiser(RtfParser):
         if self.hexCount > 0:
             self.handleHexChar(ch)
         else:
-            if ch.isupper():
+            if ch == " ":
+                self.out.append(" ")
+            elif ch.isupper():
                 self.out.append("X")
             else:
                 self.out.append("x")


More information about the Libreoffice-commits mailing list