mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-24 10:13:18 +02:00
Fix #763105 (HTML Input to RTF Output - Latin-1 characters)
This commit is contained in:
commit
36ba0bd52a
1 changed files with 1 additions and 2 deletions
|
|
@ -79,8 +79,7 @@ def txt2rtf(text):
|
|||
elif val <= 127:
|
||||
buf.write(x)
|
||||
else:
|
||||
repl = ascii_text(x)
|
||||
c = r'\uc{2}\u{0:d}{1}'.format(val, repl, len(repl))
|
||||
c = r'\u{0:d}?'.format(val)
|
||||
buf.write(c)
|
||||
return buf.getvalue()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue