Author: ai0867
Date: Wed Dec  3 12:24:22 2008
New Revision: 31241

URL: http://svn.gna.org/viewcvs/wesnoth?rev=31241&view=rev
Log:
Fix #enddef detection in wmlindent.

Modified:
    trunk/data/tools/wmlindent

Modified: trunk/data/tools/wmlindent
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlindent?rev=31241&r1=31240&r2=31241&view=diff
==============================================================================
--- trunk/data/tools/wmlindent (original)
+++ trunk/data/tools/wmlindent Wed Dec  3 12:24:22 2008
@@ -159,7 +159,8 @@
             saved_indent = indent
             indent = wmltools.baseindent
             inmacro = True
-        elif transformed.endswith("#enddef"):
+        # Be sure to ignore the newlines
+        elif transformed.rstrip().endswith("#enddef"):
             indent = saved_indent
             inmacro = False
         elif not inmacro and transformed[0] in ('[', ']'):


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to