* src/plugins/AncestorChart2.py: add support for %n style

of keyword substitution


svn: r5135
This commit is contained in:
Don Allingham 2005-08-28 20:38:46 +00:00
parent 2cd3db64aa
commit ac1f811723
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2005-08-28 Don Allingham <don@gramps-project.org>
* src/plugins/AncestorChart2.py: add support for %n style
of keyword substitution
2005-08-27 Don Allingham <don@gramps-project.org>
* src/data/Makefile.am: install document.png
* src/plugins/Makefile.am: install DescendChart.py

View File

@ -226,13 +226,13 @@ class AncestorChart(Report.Report):
self.text[index] = []
em = self.doc.string_width(self.font,"m")
subst = SubstKeywords(self.database,person_handle)
for line in self.display:
self.text[index].append(subst.replace(line))
self.text[index] = subst.replace_and_clean(self.display)
for line in self.text[index]:
this_box_width = self.doc.string_width(self.font,line)
this_box_width = self.doc.string_width(self.font,line) + 2*em
self.box_width = max(self.box_width,this_box_width)
self.lines = max(self.lines,len(self.text[index]))