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']))