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')
|
||||
for rule in stylesheet.data.cssRules.rulesOfType(CSSRule.STYLE_RULE):
|
||||
if sel == rule.selectorList.selectorText:
|
||||
val = rule.style.removeProperty('margin-left')
|
||||
pval = rule.style.getProperty('padding-left')
|
||||
if val and not pval:
|
||||
rule.style.setProperty('padding-left', val)
|
||||
rule.style.removeProperty('margin-left')
|
||||
# padding-left breaks rendering in webkit and gecko
|
||||
rule.style.removeProperty('padding-left')
|
||||
|
||||
# }}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user