From 8b8ea1c269cbb829587b92f92767bb9cfc86c0c8 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Sat, 20 Jul 2013 16:22:46 +0000 Subject: [PATCH] 6884: RTF reports broken on intl chars Fix the problem by wrapping each char in an RTF {} group. A bit inflating the text, but fixes the bug :-) svn: r22695 --- src/plugins/docgen/RTFDoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/docgen/RTFDoc.py b/src/plugins/docgen/RTFDoc.py index cb8d07bbf..484bf92ac 100644 --- a/src/plugins/docgen/RTFDoc.py +++ b/src/plugins/docgen/RTFDoc.py @@ -489,7 +489,7 @@ class RTFDoc(BaseDoc,TextDoc): else: # If (uni)code with more than 8 bits: # RTF req valus in decimal, not hex. - self.text += '\\uc1\\u%d\\uc0' % ord(i) + self.text += '{\\uc1\\u%d\\uc0}' % ord(i) elif i == '{' or i == '}' : self.text += '\\%s' % i else: