[wmlunits] Make parser not choke on malformed WML.
This commit is contained in:
parent
ad7f53945a
commit
b477391b6c
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue