mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 05:24:36 +01:00
Fix a regression in 1.26 that caused width and height attributes on <img> tags to generate CSS width and height properties without a 'px' suffix
This commit is contained in:
parent
b1ddcfa7ee
commit
c91bb61d6f
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ def __init__(self, tree, path, oeb, opts, profile=None,
|
|||
self.style(elem)._update_cssdict(cssdict)
|
||||
for elem in xpath(tree, '//h:*[@style]'):
|
||||
self.style(elem)._apply_style_attr(url_replacer=item.abshref)
|
||||
num_pat = re.compile(r'[0-9.]$')
|
||||
num_pat = re.compile(r'[0-9.]+$')
|
||||
for elem in xpath(tree, '//h:img[@width or @height]'):
|
||||
style = self.style(elem)
|
||||
# Check if either height or width is not default
|
||||
|
|
|
|||
Loading…
Reference in a new issue