Author: esr
Date: Mon Nov 23 16:33:08 2009
New Revision: 39903
URL: http://svn.gna.org/viewcvs/wesnoth?rev=39903&view=rev
Log:
Fix a string-quote test.
Modified:
trunk/data/tools/wmllint
Modified: trunk/data/tools/wmllint
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=39903&r1=39902&r2=39903&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Mon Nov 23 16:33:08 2009
@@ -1407,7 +1407,7 @@
elif lines[i].count("'") % 2 == 1:
try:
(key, prefix, value, comment) = parse_attribute(lines[i])
- if "'" in value and value[0].isalpha() and value[-1].isalpha():
+ if "'" in value and value[0].isalpha() and
value[-1].isalpha() and not '"'+value+'"' in lines[i]:
newtext = prefix + '"' + value + '"' + comment + "\n"
if lines[i] != newtext:
lines[i] = newtext
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits