MOBI Output: More tweaking of the margin handling to yield results closer to the input document.

This commit is contained in:
Kovid Goyal 2010-10-08 10:38:03 -06:00
parent 797ecbb126
commit ea59f633c9

View File

@ -189,7 +189,7 @@ class MobiMLizer(object):
para = wrapper
emleft = int(round(left / self.profile.fbase)) - ems
emleft = min((emleft, 10))
while emleft > 0:
while emleft > ems/2.0:
para = etree.SubElement(para, XHTML('blockquote'))
emleft -= ems
else: