* src/plugins/AncestorChart2.py: add support for %n style
of keyword substitution svn: r5135
This commit is contained in:
parent
2cd3db64aa
commit
ac1f811723
@ -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
|
||||
|
@ -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]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user