This commit is contained in:
Kovid Goyal 2012-05-03 19:28:28 +05:30
parent ecd4d6ddea
commit c006e9cdca

View File

@ -392,9 +392,9 @@ class CSSFlattener(object):
href = item.relhref(href) href = item.relhref(href)
etree.SubElement(head, XHTML('link'), etree.SubElement(head, XHTML('link'),
rel='stylesheet', type=CSS_MIME, href=href) rel='stylesheet', type=CSS_MIME, href=href)
stylizer.page_rule['margin-top'] = '%fpt'%\ stylizer.page_rule['margin-top'] = '%gpt'%\
float(self.context.margin_top) float(self.context.margin_top)
stylizer.page_rule['margin-bottom'] = '%fpt'%\ stylizer.page_rule['margin-bottom'] = '%gpt'%\
float(self.context.margin_bottom) float(self.context.margin_bottom)
items = stylizer.page_rule.items() items = stylizer.page_rule.items()