Merge pull request #174 from prculley/bug9240

bug9240 RTF files show incorrect Unicode characters
This commit is contained in:
Paul Franklin 2016-06-14 19:25:20 +00:00 committed by GitHub
commit ea79dc2aa2

View File

@ -486,7 +486,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 += '{\\uc0\\u%d}' % ord(i)
elif i == '\n':
self.text += '\n\\par '
elif i == '{' or i == '}' or i == '\\':