Author: esr
Date: Sun Dec 7 23:42:17 2008
New Revision: 31358
URL: http://svn.gna.org/viewcvs/wesnoth?rev=31358&view=rev
Log:
Shut wmllint up about a place qhere it shouldn't be complaining.
Modified:
trunk/data/tools/wmllint
Modified: trunk/data/tools/wmllint
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=31358&r1=31357&r2=31358&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Sun Dec 7 23:42:17 2008
@@ -162,7 +162,7 @@
print '"%s", line %d: closing %s I see %s with %s' % (filename,
lineno, closer, tag, attributes)
# Detect a malformation that will cause the game to barf while attempting
# to deserialize an empty unit.
- if closer == "side" and "type" not in attributes and ("no_leader" not in
attributes or attributes["no_leader"] != "yes") and "multiplayer" not in
ancestors:
+ if "scenario" in ancestors and closer == "side" and "type" not in
attributes and ("no_leader" not in attributes or attributes["no_leader"] !=
"yes") and "multiplayer" not in ancestors:
print '"%s", line %d: [side] without type attribute' % (filename,
lineno)
# This assumes that conversion will always happen in units/ files.
if "units" not in filename and closer == "unit" and "race" in attributes:
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits