* src/docgen/AbiWord2Doc.py: fix spacing for top and bottom margin
svn: r5422
This commit is contained in:
parent
0aedc53918
commit
1fdfa0fd1a
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user