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
This commit is contained in:
Vassilii Khachaturov 2013-07-20 16:22:46 +00:00
parent b77ef0058a
commit 8b8ea1c269

View File

@ -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: