mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-08 13:34:38 +01:00
PML Output: ensure \w always ends with a %.
This commit is contained in:
parent
37cde21c6d
commit
c38eb08018
1 changed files with 2 additions and 0 deletions
|
|
@ -216,6 +216,8 @@ def dump_text(self, elem, stylizer, page, tag_stack=[]):
|
|||
w = '\\w'
|
||||
width = elem.get('width')
|
||||
if width:
|
||||
if not width.endswith('%'):
|
||||
width += '%'
|
||||
w += '="%s"' % width
|
||||
else:
|
||||
w += '="50%"'
|
||||
|
|
|
|||
Loading…
Reference in a new issue