mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 08:07:17 +00:00
Handle macros with an #endif not at start of line.
This commit is contained in:
parent
978ae900a5
commit
7df469e62e
@ -159,7 +159,7 @@ def reindent(name, infp, outfp):
|
||||
saved_indent = indent
|
||||
indent = wmltools.baseindent
|
||||
inmacro = True
|
||||
elif transformed.startswith("#enddef"):
|
||||
elif transformed.endswith("#enddef"):
|
||||
indent = saved_indent
|
||||
inmacro = False
|
||||
elif not inmacro and transformed[0] in ('[', ']'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user