mail[Wesnoth-commits] r20288 - /trunk/data/tools/wmllint


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by esr on September 11, 2007 - 00:41:
Author: esr
Date: Tue Sep 11 00:40:57 2007
New Revision: 20288

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20288&view=rev
Log:
Better control on one of the reports.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=20288&r1=20287&r2=20288&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Tue Sep 11 00:40:57 2007
@@ -622,6 +622,7 @@
                 comment = fields[1]
             if syntactic.strip().startswith("name"):
                 attackname = syntactic.split("=")[1].strip()
+    boucmanized = False
     # All animation ranges have been gathered,  We have a list of objects
     # containing the attack information.  Reverse it, because we're
     # going to process them back to front to avoid invalidating the
@@ -646,6 +647,7 @@
         aframe.wml = "".join(animation)
         lines = lines[:aframe.animstart] + lines[aframe.animend+1:]
         modcount += 1
+        boucmanized = True
     # Insert attacks where they belong
     female_attacks = filter(lambda a: a.female, animations)
     female_attacks.reverse()
@@ -719,7 +721,7 @@
                 radius_pos = wmlfind("radius=", radius_pos)
     # Check for duplicated attack names -- may be a result of a naive
     # boucman conversion.
-    if experimental: 
+    if boucmanized:
         name_pos = wmlfind("name=", WmlIterator(lines))
         duplist = {}
         while name_pos is not None:
@@ -1001,7 +1003,6 @@
     diffs = False
     revert = False
     stripcr = False
-    experimental = False
     for (switch, val) in options:
         if switch in ('-h', '--help'):
             help()
@@ -1023,8 +1024,6 @@
             revert = True
         elif switch in ('-s', '--stripcr'):
             stripcr = True
-        elif switch in ('-x', '--experimental'):
-            experimental = True
 
     if clean and revert:
         sys.stderr.write("wmllint: can't do clean and revert together.\n")




Related Messages


Powered by MHonArc, Updated Tue Sep 11 02:00:46 2007