Author: esr
Date: Mon Nov 10 13:03:47 2008
New Revision: 30691

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30691&view=rev
Log:
wmllint double-quotes IDs containing single-quote.
This diff also fixes two comments where the lift code was 
a bit overzealous.  No real harm done, fortunately. 

Modified:
    
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06a_In_the_Tunnels_of_Trolls.cfg
    trunk/data/core/units/monsters/Skeletal_Dragon.cfg
    trunk/data/tools/wmllint

Modified: 
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06a_In_the_Tunnels_of_Trolls.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06a_In_the_Tunnels_of_Trolls.cfg?rev=30691&r1=30690&r2=30691&view=diff
==============================================================================
--- 
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06a_In_the_Tunnels_of_Trolls.cfg
 (original)
+++ 
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/06a_In_the_Tunnels_of_Trolls.cfg
 Mon Nov 10 13:03:47 2008
@@ -418,7 +418,7 @@
             value=0
         [/set_variable]
 
-        # create AI="guardian units. They can't move unless an enemy"
+        # create AI=guardian units. They can't move unless an enemy
         # moves nearby. I create them at the beginning because when the
         # player sees them, events will fire.
 

Modified: trunk/data/core/units/monsters/Skeletal_Dragon.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/units/monsters/Skeletal_Dragon.cfg?rev=30691&r1=30690&r2=30691&view=diff
==============================================================================
--- trunk/data/core/units/monsters/Skeletal_Dragon.cfg (original)
+++ trunk/data/core/units/monsters/Skeletal_Dragon.cfg Mon Nov 10 13:03:47 2008
@@ -2,7 +2,7 @@
 [unit_type]
     id=Skeletal Dragon
     name= _ "Skeletal Dragon"
-    #not 'race="monster', because we need the not_living attribute"
+    #not 'race=monster', because we need the not_living attribute
     race=undead
     image="units/monsters/skeletal-dragon.png"
     hitpoints=86

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=30691&r1=30690&r2=30691&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Mon Nov 10 13:03:47 2008
@@ -856,9 +856,11 @@
             try:
                 (key, prefix, value, comment) = parse_attribute(lines[i])
                 if "'" in value and value[0].isalpha() and value[-1].isalpha():
-                    lines[i] = prefix + '"' + value + '"' + comment + "\n"
-                    if verbose:
-                        print '"%s", line %d: quote-enclosing attribute 
value.'%(filename, i+1)
+                    newtext = prefix + '"' + value + '"' + comment + "\n"
+                    if lines[i] != newtext:
+                        lines[i] = newtext
+                        if verbose:
+                            print '"%s", line %d: quote-enclosing attribute 
value.'%(filename, i+1)
             except TypeError:
                 pass
     # More syntax transformations would go here.


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

Reply via email to