parent
e1676aca6d
commit
2b42dd258e
@ -867,7 +867,8 @@ class FamilyLinesReport(Report):
|
||||
label += '<TD>'
|
||||
|
||||
# at the very least, the label must have the person's name
|
||||
label += name
|
||||
name = name.replace('"', '"')
|
||||
label += name.replace('<', '<').replace('>', '>')
|
||||
if self.includeid == 1: # same line
|
||||
label += " (%s)" % p_id
|
||||
elif self.includeid == 2: # own line
|
||||
@ -1097,4 +1098,6 @@ class FamilyLinesReport(Report):
|
||||
place_text = location.get(PlaceType.STATE)
|
||||
elif location.get(PlaceType.COUNTRY):
|
||||
place_text = location.get(PlaceType.COUNTRY)
|
||||
place_text = place_text.replace('<', '<')
|
||||
place_text = place_text.replace('>', '>')
|
||||
return place_text
|
||||
|
@ -211,6 +211,8 @@ class HourGlassReport(Report):
|
||||
"""
|
||||
p_id = person.get_gramps_id()
|
||||
name = self._name_display.display(person)
|
||||
name = name.replace('"', '"')
|
||||
name = name.replace('<', '<').replace('>', '>')
|
||||
|
||||
birth_evt = get_birth_or_fallback(self.__db, person)
|
||||
if birth_evt:
|
||||
|
@ -566,11 +566,8 @@ class RelGraphReport(Report):
|
||||
|
||||
# at the very least, the label must have the person's name
|
||||
p_name = self._name_display.display(person)
|
||||
if self.use_html_output:
|
||||
# avoid < and > in the name, as this is html text
|
||||
label += p_name.replace('<', '<').replace('>', '>')
|
||||
else:
|
||||
label += p_name
|
||||
p_name = p_name.replace('"', '"')
|
||||
label += p_name.replace('<', '<').replace('>', '>')
|
||||
p_id = person.get_gramps_id()
|
||||
if self.includeid == 1: # same line
|
||||
label += " (%s)" % p_id
|
||||
@ -719,7 +716,8 @@ class RelGraphReport(Report):
|
||||
empty string
|
||||
"""
|
||||
if event and self.event_choice in [2, 3, 5, 6, 7]:
|
||||
return _pd.display_event(self._db, event)
|
||||
place = _pd.display_event(self._db, event)
|
||||
return place.replace('<', '<').replace('>', '>')
|
||||
return ''
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user