From c006e9cdcac8ad725ab8b53118993ba7ad60fed1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 3 May 2012 19:28:28 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/transforms/flatcss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/transforms/flatcss.py b/src/calibre/ebooks/oeb/transforms/flatcss.py index 189767728f..bd8db01f15 100644 --- a/src/calibre/ebooks/oeb/transforms/flatcss.py +++ b/src/calibre/ebooks/oeb/transforms/flatcss.py @@ -392,9 +392,9 @@ class CSSFlattener(object): href = item.relhref(href) etree.SubElement(head, XHTML('link'), rel='stylesheet', type=CSS_MIME, href=href) - stylizer.page_rule['margin-top'] = '%fpt'%\ + stylizer.page_rule['margin-top'] = '%gpt'%\ float(self.context.margin_top) - stylizer.page_rule['margin-bottom'] = '%fpt'%\ + stylizer.page_rule['margin-bottom'] = '%gpt'%\ float(self.context.margin_bottom) items = stylizer.page_rule.items()