mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PML Output: ensure \w always ends with a %.
This commit is contained in:
parent
37cde21c6d
commit
c38eb08018
@ -216,6 +216,8 @@ class PMLMLizer(object):
|
||||
w = '\\w'
|
||||
width = elem.get('width')
|
||||
if width:
|
||||
if not width.endswith('%'):
|
||||
width += '%'
|
||||
w += '="%s"' % width
|
||||
else:
|
||||
w += '="50%"'
|
||||
|
Loading…
x
Reference in New Issue
Block a user