Fix rtf unicode formatting, it failed when string replacement started with a digit

This commit is contained in:
Benjamin Dauvergne 2011-06-21 20:08:36 +00:00
parent 5859acd964
commit 8570091455
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ def char2rtf(c):
def str2rtf(s):
s = ''.join([ char2rtf(c) for c in s])
return '{\uc1%s}' % s
return '{\uc1{%s}}' % s
def rtf_process(value):
if value is None: