Fixed wml parser to read escaped strings

This commit is contained in:
Pauli Nieminen 2008-06-20 14:19:16 +00:00
parent bfaae1cee6
commit 2ce51639da

View File

@ -502,6 +502,9 @@ class Parser:
while not self.at_end():
text += self.read_until('"{')
if text[-1] == '"':
if self.peek_next() == '"':
self.read_next()
else:
return text[:-1]
elif text[-1] == '{':
text = text[:-1]