Author: ai0867
Date: Mon Sep 29 10:38:06 2008
New Revision: 29753

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29753&view=rev
Log:
* Moved the (lack of) [+tag] functionality around a bit.
Should fix this properly at some point.

Modified:
    trunk/data/tools/wesnoth/wmlparser.py

Modified: trunk/data/tools/wesnoth/wmlparser.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmlparser.py?rev=29753&r1=29752&r2=29753&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmlparser.py (original)
+++ trunk/data/tools/wesnoth/wmlparser.py Mon Sep 29 10:38:06 2008
@@ -739,9 +739,13 @@
             elif c == '[':
                 name = self.read_until("]")[:-1]
                 if name[0] == '/':
-                    if state == name[1:] or state == "+" + name[1:]:
+                    if state == name[1:]:
                         return
                     raise Error(self, "Mismatched closing tag [%s], expected 
[/%s]" % (name, state))
+                #TODO: make a [+tag] properly append to most recent [tag] 
+                # The below is an ugly hack, but better than keeping the '+' 
in the tag name.
+                elif name[0] == '+':
+                    name = name[1:]
                 subdata = wmldata.DataSub(name)
                 self.parse_top(subdata, name)
                 data.insert(subdata)


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

Reply via email to