Fixed spacing

svn: r104
This commit is contained in:
Don Allingham 2001-06-08 01:28:21 +00:00
parent 5fe16608bc
commit 727f03d995
2 changed files with 6 additions and 7 deletions

View File

@ -189,7 +189,7 @@ class OpenOfficeDoc(TextDoc):
self.f.write(tag) self.f.write(tag)
self.f.write('" text:anchor-type="paragraph" ') self.f.write('" text:anchor-type="paragraph" ')
self.f.write('svg:width="%scm" ' % cnv("%.3f",float(act_width)/72.0)) self.f.write('svg:width="%scm" ' % cnv("%.3f",float(act_width)/72.0))
self.f.write('svg:height="%scm" ' % cnv((float(act_height)/72.0))) self.f.write('svg:height="%scm" ' % cnv("%.3f",(float(act_height)/72.0)))
self.f.write('draw:z-index="0" ') self.f.write('draw:z-index="0" ')
self.f.write('xlink:href="#Pictures/') self.f.write('xlink:href="#Pictures/')
self.f.write(base) self.f.write(base)
@ -370,9 +370,9 @@ class OpenOfficeDoc(TextDoc):
self.f.write('<office:automatic-styles>\n') self.f.write('<office:automatic-styles>\n')
self.f.write('<style:page-master style:name="pm1">\n') self.f.write('<style:page-master style:name="pm1">\n')
self.f.write('<style:properties fo:page-width="%scm" ' % \ self.f.write('<style:properties fo:page-width="%scm" ' % \
cnv(self.width)) cnv("%.3f",self.width))
self.f.write('fo:page-height="%scm" ' % \ self.f.write('fo:page-height="%scm" ' % \
cnv(self.height)) cnv("%.3f",self.height))
self.f.write('style:num-format="1" ') self.f.write('style:num-format="1" ')
if self.orientation == PAPER_PORTRAIT: if self.orientation == PAPER_PORTRAIT:
self.f.write('style:print-orientation="portrait" ') self.f.write('style:print-orientation="portrait" ')

View File

@ -303,7 +303,7 @@ def report(database,person):
para = ParagraphStyle() para = ParagraphStyle()
para.set_font(font) para.set_font(font)
para.set_header_level(1) para.set_header_level(1)
para.set(tborder=0.2,bborder=0.2,pad=1) para.set(pad=0.5)
styles.add_style("Title",para) styles.add_style("Title",para)
font = FontStyle() font = FontStyle()
@ -311,12 +311,11 @@ def report(database,person):
para = ParagraphStyle() para = ParagraphStyle()
para.set_font(font) para.set_font(font)
para.set_header_level(2) para.set_header_level(2)
para.set_top_border(0.15) para.set(pad=0.5)
para.set(tborder=0.15,pad=1)
styles.add_style("Generation",para) styles.add_style("Generation",para)
para = ParagraphStyle() para = ParagraphStyle()
para.set(first_indent=-2.0,lmargin=2.0,pad=1) para.set(first_indent=-1.0,lmargin=1.0,pad=0.25)
styles.add_style("Entry",para) styles.add_style("Entry",para)
style_sheet_list = StyleSheetList("ancestor_report.xml",styles) style_sheet_list = StyleSheetList("ancestor_report.xml",styles)