mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:34:27 +02:00
...
This commit is contained in:
parent
e609bd6003
commit
95ee0429e0
1 changed files with 2 additions and 1 deletions
|
|
@ -454,7 +454,8 @@ def mobimlize_elem(self, elem, stylizer, bstate, istates,
|
|||
text = COLLAPSE.sub(' ', elem.text)
|
||||
valign = style['vertical-align']
|
||||
not_baseline = valign in ('super', 'sub', 'text-top',
|
||||
'text-bottom') or isinstance(valign, (float, int))
|
||||
'text-bottom') or (
|
||||
isinstance(valign, (float, int)) and abs(valign) != 0)
|
||||
issup = valign in ('super', 'text-top') or (
|
||||
isinstance(valign, (float, int)) and valign > 0)
|
||||
vtag = 'sup' if issup else 'sub'
|
||||
|
|
|
|||
Loading…
Reference in a new issue