diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index b8453333d..73c0f04a9 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -1788,14 +1788,15 @@ class IndividualPage(BasePage): def draw_box(self, of, center, col, person): top = center - _HEIGHT/2 xoff = _XOFFSET+col*(_WIDTH+_HGAP) - sex = person.get_gender() + sex = person.gender if sex == gen.lib.Person.MALE: divclass = "male" elif sex == gen.lib.Person.FEMALE: divclass = "female" else: divclass = "unknown" - of.write('\t\t\t
\n' % (divclass, col, top, xoff+1)) + of.write('\t\t\t
\n' + % (divclass, col, top, xoff+1)) of.write('\t\t\t\t') if person.handle in self.ind_list: thumbnailUrl = None @@ -1812,9 +1813,12 @@ class IndividualPage(BasePage): url = self.report.build_url_fname_html(person.handle, 'ppl', True) self.person_link(of, url, person_name, thumbnailUrl=thumbnailUrl) else: + of.write('') of.write(_nd.display(person)) + of.write('\n') of.write('\n\t\t\t
\n') - of.write('\t\t\t
\n' % (top+_SHADOW, xoff+_SHADOW)) + of.write('\t\t\t
\n' + % (top+_SHADOW, xoff+_SHADOW)) def extend_line(self, of, y0, x0): of.write('\t\t\t
\n' % @@ -1858,7 +1862,8 @@ class IndividualPage(BasePage): of.write('\t
\n') of.write('\t\t

%s

\n' % _('Ancestors')) - of.write('\t\t
\n' % (_XOFFSET+(generations)*_WIDTH+(generations-1)*_HGAP, max_size)) + of.write('\t\t
\n' + % (_XOFFSET+(generations)*_WIDTH+(generations-1)*_HGAP, max_size)) self.draw_tree(of, 1, generations, max_size, 0, center, self.person.handle)