* src/docgen/AbiWord2Doc.py: fix spacing for top and bottom margin

svn: r5422
This commit is contained in:
Don Allingham 2005-11-23 04:48:01 +00:00
parent 0aedc53918
commit 1fdfa0fd1a
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
2005-11-22 Don Allingham <don@gramps-project.org>
* src/docgen/AbiWord2Doc.py: fix spacing for top and bottom margin
* src/ArgHandler.py: fix typo
* src/docgen/PSDrawDoc.py: removed print statements
* src/plugins/DetDescendantReport.py: fixed insert_image

View File

@ -119,8 +119,8 @@ class AbiWordDoc(BaseDoc.BaseDoc):
style = self.style_list[style_name]
self.current_style = style
self.f.write('<s type="P" name="%s" basedon="" followedby="" props="' % style_name)
self.f.write('margin-top:%.4fin; ' % (float(style.get_padding())/2.54))
self.f.write('margin-bottom:%.4fin; ' % (float(style.get_padding())/2.54))
self.f.write('margin-top:%.4fin; ' % (float(style.get_top_margin())/2.54))
self.f.write('margin-bottom:%.4fin; ' % (float(style.get_bottom_margin())/2.54))
if style.get_alignment() == BaseDoc.PARA_ALIGN_RIGHT:
self.f.write('text-align:right;')
elif style.get_alignment() == BaseDoc.PARA_ALIGN_LEFT: