Fix rtf unicode formatting, it failed when string replacement started with a digit
This commit is contained in:
parent
5859acd964
commit
8570091455
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue