Author: anonymissimus
Date: Thu Mar 29 17:28:34 2012
New Revision: 53687

URL: http://svn.gna.org/viewcvs/wesnoth?rev=53687&view=rev
Log:
wmmlint rule for previous commit

No updates to mainline wml required.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=53687&r1=53686&r2=53687&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Thu Mar 29 17:28:34 2012
@@ -558,6 +558,13 @@
         if ancestor:
             print '"%s", line %d: %s should have an inline SSF instead of 
using [filter_side]' % \
                 (filename, lineno, ancestor)
+    if closer == "object":
+        if attributes.get("unit_type") is not None:
+            print '"%s", line %d: use [object][filter]type= instead of 
[object]unit_type=' % \
+                (filename, lineno)
+        if attributes.get("unit_gender") is not None:
+            print '"%s", line %d: use [object][filter]gender= instead of 
[object]unit_gender=' % \
+                (filename, lineno)
 
 def within(tag):
     "Did the specified tag lead one of our enclosing contexts?"


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

Reply via email to