Ajout espace insécable

This commit is contained in:
Cyril Novel 2020-11-01 09:18:20 +01:00
commit ecf4c95aa0

View file

@ -23,7 +23,7 @@ class Event:
def event_description(self) -> str: def event_description(self) -> str:
y = self.get_year_span() y = self.get_year_span()
if self._type == 'N': if self._type == 'N':
return '{}{}{} il y a {} an{}'.format( return '{}{}{} il y a {} an{}'.format(
self._p_a.formatted_name(), self._p_a.formatted_name(),
' (a épousé {})'.format(self._p_b.formatted_name()) if self._p_b else '', ' (a épousé {})'.format(self._p_b.formatted_name()) if self._p_b else '',
'' if self._p_a.is_male() else 'e', '' if self._p_a.is_male() else 'e',
@ -31,13 +31,13 @@ class Event:
's' if y > 1 else '' 's' if y > 1 else ''
) )
if self._type == 'M': if self._type == 'M':
return '{} a épousé {} il y a {} an{}'.format( return '{} a épousé {} il y a {} an{}'.format(
self._p_a.formatted_name(), self._p_a.formatted_name(),
self._p_b.formatted_name(), self._p_b.formatted_name(),
y, y,
's' if y > 1 else '' 's' if y > 1 else ''
) )
return '{}{} décédé{} il y a {} an{}'.format( return '{}{} décédé{} il y a {} an{}'.format(
self._p_a.formatted_name(), self._p_a.formatted_name(),
' (a épousé {})'.format(self._p_b.formatted_name()) if self._p_b else '', ' (a épousé {})'.format(self._p_b.formatted_name()) if self._p_b else '',
'' if self._p_a.is_male() else 'e', '' if self._p_a.is_male() else 'e',