mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
MOBI Output: More tweaking of the margin handling to yield results closer to the input document.
This commit is contained in:
parent
797ecbb126
commit
ea59f633c9
@ -189,7 +189,7 @@ class MobiMLizer(object):
|
|||||||
para = wrapper
|
para = wrapper
|
||||||
emleft = int(round(left / self.profile.fbase)) - ems
|
emleft = int(round(left / self.profile.fbase)) - ems
|
||||||
emleft = min((emleft, 10))
|
emleft = min((emleft, 10))
|
||||||
while emleft > 0:
|
while emleft > ems/2.0:
|
||||||
para = etree.SubElement(para, XHTML('blockquote'))
|
para = etree.SubElement(para, XHTML('blockquote'))
|
||||||
emleft -= ems
|
emleft -= ems
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user