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