mail[Wesnoth-commits] r24717 - /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 March 16, 2008 - 19:30:
Author: esr
Date: Sun Mar 16 19:30:42 2008
New Revision: 24717

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24717&view=rev
Log:
Another consequence of unit_description -> name.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=24717&r1=24716&r2=24717&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Sun Mar 16 19:30:42 2008
@@ -2143,6 +2143,9 @@
             if ".user_description" in line: 
                 print '"%s", line %d: .user_description may need hand fixup' 
% \
                                        (filename, lineno)
+            # Inside themes
+            if within("theme"):
+                line = line.replace("[unit_description]", "[unit_name]")
         # Report the changes
         if verbose > 0 and transformed != line:
             msg = "%s, line %d: %s -> %s" % \




Related Messages


Powered by MHonArc, Updated Sun Mar 16 19:41:24 2008