From 5b9ea3be88babf5099303f71826070d7c3045165 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 7 Jun 2001 22:02:09 +0000 Subject: [PATCH] Support for header level (needed for LaTeX) svn: r98 --- gramps/src/TextDoc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/src/TextDoc.py b/gramps/src/TextDoc.py index de2b28eda..1d4ade44b 100644 --- a/gramps/src/TextDoc.py +++ b/gramps/src/TextDoc.py @@ -431,6 +431,7 @@ class StyleSheetList: f.write('first="%.3f" ' % utils.fl2txt("%.3f",p.get_first_indent())) f.write('pad="%.3f" ' % utils.fl2txt("%.3f",p.get_padding())) f.write('bgcolor="#%02x%02x%02x" ' % p.get_background_color()) + f.write('level="%d" ' % p.get_header_level()) f.write('align="%d" ' % p.get_alignment()) f.write('tborder="%d" ' % p.get_top_border()) f.write('lborder="%d" ' % p.get_left_border()) @@ -525,6 +526,7 @@ class SheetParser(xml.sax.handler.ContentHandler): self.p.set_padding(utils.txt2fl(attrs['pad'])) self.p.set_alignment(int(attrs['align'])) self.p.set_right_border(int(attrs['rborder'])) + self.p.set_header_level(int(attrs['level'])) self.p.set_left_border(int(attrs['lborder'])) self.p.set_top_border(int(attrs['tborder'])) self.p.set_bottom_border(int(attrs['bborder']))