Author: esr
Date: Mon Nov 23 14:20:58 2009
New Revision: 39898

URL: http://svn.gna.org/viewcvs/wesnoth?rev=39898&view=rev
Log:
Bugfixes for pangoization and handling of stringfreeze option.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=39898&r1=39897&r2=39898&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Mon Nov 23 14:20:58 2009
@@ -706,7 +706,7 @@
             continue
         # This is the common, simple case we can fix automatically
         message = message[:where] + newstart + message[where+1:]
-        endq = lines[where].rfind('"')
+        endq = line[where].rfind('"')
         message = message[:endq] + newend + message[endq+1:]
     # Check for unescaped < and >
     if "<" in message or ">" in message:
@@ -1971,11 +1971,12 @@
     -s, --stripcr              Convert DOS-style CR/LF to Unix-style LF.
     -f, --future               Enable experimental WML conversions.
     -S, --nospellcheck         Suppress spellchecking
+    -Z, --stringfreeze         Suppress warnings about newlines in messages
 """)
 
 if __name__ == '__main__':
     try:
-        (options, arguments) = getopt.getopt(sys.argv[1:], "cdDfhnrsvS", [
+        (options, arguments) = getopt.getopt(sys.argv[1:], "cdDfhnrsvSZ", [
             "clean",
             "diffs",
             "dryrun",
@@ -2015,7 +2016,7 @@
             revert = True
         elif switch in ('-s', '--stripcr'):
             stripcr = True
-        elif switch in ('-S', '--stringfreeze'):
+        elif switch in ('-Z', '--stringfreeze'):
             stringfreeze = True
         elif switch in ('-v', '--verbose'):
             verbose += 1


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

Reply via email to