Author: esr
Date: Wed Sep 17 00:07:57 2008
New Revision: 29504

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29504&view=rev
Log:
Strip attributes for stack checks even when there's no comment.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=29504&r1=29503&r2=29504&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Wed Sep 17 00:07:57 2008
@@ -1010,8 +1010,8 @@
                         attribute = instance.group(1)
                         value = instance.group(2)
                         if '#' in value:
-                            value = value.split("#")[0].strip()
-                        tagstack[-1][1][attribute] = value
+                            value = value.split("#")[0]
+                        tagstack[-1][1][attribute] = value.strip()
                     if validate:
                         validate_stack(tagstack, filename, lineno)
             if "wmllint: validate-on" in comment:


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

Reply via email to