Fix PaperStyle typos for AbiWord2Doc.

svn: r8341
This commit is contained in:
Brian Matherly 2007-04-01 03:10:29 +00:00
parent 2002d9a1ba
commit 6a864bb44c
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2007-03-31 Brian Matherly <brian@gramps-project.org>
* src/docgen/AbiWord2Doc.py: Fix PaperStyle typos.
2007-03-29 Don Allingham <don@gramps-project.org>
* src/ViewManager.py: load previous db if requested
* src/gramps_main.py: load previous db if requested

View File

@ -103,7 +103,7 @@ class AbiWordDoc(BaseDoc.BaseDoc):
# page size section
self.f.write('<pagesize ')
self.f.write('pagetype="%s" ' % self.paper.get_name())
self.f.write('pagetype="%s" ' % self.paper.get_size().get_name())
if self.paper.get_orientation() == BaseDoc.PAPER_PORTRAIT:
self.f.write('orientation="portrait" ')
else:
@ -114,7 +114,7 @@ class AbiWordDoc(BaseDoc.BaseDoc):
self.f.write('<section ')
rmargin = float(self.paper.get_right_margin())/2.54
lmargin = float(self.paper.get_left_margin())/2.54
self.f.write('props="page-margin-right:%.4fin; ' % paper.get_right_margin())
self.f.write('props="page-margin-right:%.4fin; ' % self.paper.get_right_margin())
self.f.write('page-margin-left:%.4fin"' % lmargin)
self.f.write('>\n')