Browse Source

Make EOL active in verse, verse* and chorus environments

pull/54/head
Louis 11 years ago
parent
commit
4244d9a1dd
  1. 3
      songbook_core/plastex_chord.py

3
songbook_core/plastex_chord.py

@ -33,8 +33,11 @@ def wrap_displaymath(cls):
"""Wrapper to invoke() to update global variable IN_VERSE."""
global IN_VERSE
if self.macroMode == Macro.MODE_BEGIN:
self.ownerDocument.context.push()
self.ownerDocument.context.catcode("\n", 13)
IN_VERSE += 1
else:
self.ownerDocument.context.pop()
IN_VERSE -= 1
super(WrappedClass, self).invoke(tex)
return WrappedClass

Loading…
Cancel
Save