Author: ai0867
Date: Fri Dec 5 01:22:29 2008
New Revision: 31275
URL: http://svn.gna.org/viewcvs/wesnoth?rev=31275&view=rev
Log:
Stop wmlindent from using commented-out #enddefs.
Modified:
trunk/data/tools/wmlindent
Modified: trunk/data/tools/wmlindent
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlindent?rev=31275&r1=31274&r2=31275&view=diff
==============================================================================
--- trunk/data/tools/wmlindent (original)
+++ trunk/data/tools/wmlindent Fri Dec 5 01:22:29 2008
@@ -159,8 +159,8 @@
saved_indent = indent
indent = wmltools.baseindent
inmacro = True
- # Be sure to ignore the newlines
- elif transformed.rstrip().endswith("#enddef"):
+ # Be sure to ignore the newlines and comments
+ elif transformed.rstrip().endswith("#enddef") and
transformed.find("#") == transformed.find("#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