core: fix Alt() hierarchichal representation

This commit is contained in:
p1-bmu 2021-05-04 12:28:56 +02:00
parent 85cb3739af
commit fff36ab5a5
1 changed files with 3 additions and 3 deletions

View File

@ -4686,12 +4686,12 @@ class Alt(Element):
#
alts = alt.show()
if alts[:4] == '### ':
# when the alternative is a constructed element
return alts.replace('### ', '### %s%s%s : %r -> ' % (self._name, desc, trans, sv), 1)
else:
# case when the selected alternative is a base element
# when the alternative is a base element
spaces = self.get_hier_abs() * ' '
return '%s### %s%s%s : %r ###\n %s%s'\
% (spaces, self._name, desc, trans, sv, spaces, alts)
return '%s### %s%s%s : %r ###\n %s' % (spaces, self._name, desc, trans, sv, alts)
else:
alt = self.get_alt()
_hier = alt._hier