mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 17:03:25 +00:00
[wmlunits] Make parser not choke on malformed WML.
This commit is contained in:
parent
ad7f53945a
commit
b477391b6c
@ -364,7 +364,8 @@ class Parser:
|
||||
att = att.strip()
|
||||
node = AttributeNode(att)
|
||||
self.temp_key_nodes.append(node)
|
||||
self.parent_node[-1].append(node)
|
||||
if self.parent_node:
|
||||
self.parent_node[-1].append(node)
|
||||
|
||||
if remainder:
|
||||
self.parse_outside_strings(remainder)
|
||||
|
Loading…
x
Reference in New Issue
Block a user