mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression that broke PDF output
This commit is contained in:
parent
2d34c8a9ed
commit
423e061719
@ -62,10 +62,10 @@ class FontStream(Stream):
|
||||
|
||||
|
||||
def to_hex_string(c):
|
||||
ans = hex(int(c))[2:].rjust(4, '0')
|
||||
ans = hex(int(c))[2:]
|
||||
if isinstance(ans, bytes):
|
||||
ans = ans.decode('ascii')
|
||||
return ans
|
||||
return ans.rjust(4, '0')
|
||||
|
||||
|
||||
class CMap(Stream):
|
||||
|
Loading…
x
Reference in New Issue
Block a user