mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5877 (ebook-viewer not rendering ordered lists as ordered)
This commit is contained in:
parent
9db27591d4
commit
247dd0cb77
@ -380,10 +380,9 @@ class EPUBOutput(OutputFormatPlugin):
|
|||||||
sel = '.'+lb.get('class')
|
sel = '.'+lb.get('class')
|
||||||
for rule in stylesheet.data.cssRules.rulesOfType(CSSRule.STYLE_RULE):
|
for rule in stylesheet.data.cssRules.rulesOfType(CSSRule.STYLE_RULE):
|
||||||
if sel == rule.selectorList.selectorText:
|
if sel == rule.selectorList.selectorText:
|
||||||
val = rule.style.removeProperty('margin-left')
|
rule.style.removeProperty('margin-left')
|
||||||
pval = rule.style.getProperty('padding-left')
|
# padding-left breaks rendering in webkit and gecko
|
||||||
if val and not pval:
|
rule.style.removeProperty('padding-left')
|
||||||
rule.style.setProperty('padding-left', val)
|
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user