mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
...
This commit is contained in:
parent
40bef5e8d9
commit
5b2049c3c8
@ -86,7 +86,7 @@ class ImagesManager(object):
|
||||
if len(parent) == 1 and not (parent.text or '').strip() and not (html_img.tail or '').strip():
|
||||
# We have an inline image alone inside a block
|
||||
pstyle = stylizer.style(parent)
|
||||
if pstyle['text-align'] in ('center', 'right'):
|
||||
if pstyle['text-align'] in ('center', 'right') and 'block' in pstyle['display']:
|
||||
floating = pstyle['text-align']
|
||||
fake_margins = floating is None
|
||||
self.count += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user