Author: suokko
Date: Fri Jun 20 16:19:16 2008
New Revision: 27349
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27349&view=rev
Log:
Fixed wml parser to read escaped strings
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=27349&r1=27348&r2=27349&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmlparser.py (original)
+++ trunk/data/tools/wesnoth/wmlparser.py Fri Jun 20 16:19:16 2008
@@ -502,7 +502,10 @@
while not self.at_end():
text += self.read_until('"{')
if text[-1] == '"':
- return text[:-1]
+ if self.peek_next() == '"':
+ self.read_next()
+ else:
+ return text[:-1]
elif text[-1] == '{':
text = text[:-1]
not_found = self.parse_macro()
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits