Closed FHeilmann closed 7 years ago
>>> def start(env): ... return '\begin{}'.format(env)
will cause start('center') to return egincenter. You need to escape the backslash and the curly braces like so:
start('center')
egincenter
>>> def start(env): ... return '\\begin{{{}}}'.format(env)
same for end(env):
end(env)
>>> def end(env): ... return '\\end{{{}}}'.format(env)
edit:
the same applies for Function Based Context Managers and Class Based Context Managers
Fixed by your PR. THanks
will cause
start('center')
to returnegincenter
. You need to escape the backslash and the curly braces like so:same for
end(env)
:edit:
the same applies for Function Based Context Managers and Class Based Context Managers