Browse Source

Amélioration de \[

pull/58/head
Louis 10 years ago
parent
commit
7d8df0ea83
  1. 12
      patacrep/plastex_chord.py

12
patacrep/plastex_chord.py

@ -128,13 +128,11 @@ class BeginChordOrDisplayMath(BeginDisplayMath):
) )
self.ownerDocument.context.pop() #pylint: disable=no-member self.ownerDocument.context.pop() #pylint: disable=no-member
token = None token = next(iter(tex), None)
for token in tex: if token is None:
end = True return [chord]
if not match_space(token): elif match_space(token):
end = False chord.appendChild(token)
break
if end:
return [chord] return [chord]
elif ( elif (
isinstance(token, Verse) isinstance(token, Verse)

Loading…
Cancel
Save