mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 20:02:31 +00:00
Fixed wml parser to read escaped strings
This commit is contained in:
parent
bfaae1cee6
commit
2ce51639da
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user