Ajout espace insécable
This commit is contained in:
parent
46522580f4
commit
ecf4c95aa0
1 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ class Event:
|
|||
def event_description(self) -> str:
|
||||
y = self.get_year_span()
|
||||
if self._type == 'N':
|
||||
return '{}{} né{} il y a {} an{}'.format(
|
||||
return '{}{} né{} il y a {} an{}'.format(
|
||||
self._p_a.formatted_name(),
|
||||
' (a épousé {})'.format(self._p_b.formatted_name()) if self._p_b else '',
|
||||
'' if self._p_a.is_male() else 'e',
|
||||
|
|
@ -31,13 +31,13 @@ class Event:
|
|||
's' if y > 1 else ''
|
||||
)
|
||||
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_b.formatted_name(),
|
||||
y,
|
||||
'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(),
|
||||
' (a épousé {})'.format(self._p_b.formatted_name()) if self._p_b else '',
|
||||
'' if self._p_a.is_male() else 'e',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue