[wmlunits] Make parser not choke on malformed WML.

This commit is contained in:
Elias Pschernig 2011-01-30 22:29:59 +00:00
parent ad7f53945a
commit b477391b6c

View file

@ -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)