Author: esr
Date: Tue Jul 17 01:11:51 2007
New Revision: 18836

URL: http://svn.gna.org/viewcvs/wesnoth?rev=18836&view=rev
Log:
Second line of Sapient's one-liner.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=18836&r1=18835&r2=18836&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Tue Jul 17 01:11:51 2007
@@ -789,6 +789,7 @@
                             transformed = old.sub(new, transformed)
        # WML syntax changed in 1.3.5
        transformed = re.sub(r"if\]\s*\[or\]", "if]", transformed);
+       transformed = re.sub(r"if\]([^[*]*)\[/or]", r"if]\1", transformed);
         # Report the changes
         if verbose > 0 and transformed != line:
             msg = "%s, line %d: %s -> %s" % \


_______________________________________________
Wesnoth-commits mailing list
Wesnoth-commits@gna.org
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to