From ea59f633c92a5faafa53ebc24b0a7995d54e99bb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 8 Oct 2010 10:38:03 -0600 Subject: [PATCH] MOBI Output: More tweaking of the margin handling to yield results closer to the input document. --- src/calibre/ebooks/mobi/mobiml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/mobiml.py b/src/calibre/ebooks/mobi/mobiml.py index a822e66758..cf15e3e29c 100644 --- a/src/calibre/ebooks/mobi/mobiml.py +++ b/src/calibre/ebooks/mobi/mobiml.py @@ -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: