[wmlunits] Disable crashing chunk_start stuff someone added.

This commit is contained in:
Allefant 2014-01-29 17:44:22 +01:00
parent 167a370787
commit 8aa0febfde

View file

@ -476,9 +476,14 @@ class Parser:
def handle_command(self, com):
if com.startswith("line "):
self.last_wml_line = com[5:]
_ = self.last_wml_line.split(" ")
self.chunk_start = [(_[i+1], int(_[i])) for i in range(0, len(_), 2)]
self.line_in_file = self.chunk_start[0][1]
number, rest = self.last_wml_line.split(" ", 1)
number = int(number)
# Note: filenames contain spaces so this is bogus
#_ = self.last_wml_line.split(" ")
#self.chunk_start = [(_[i+1], int(_[i])) for i in range(0, len(_), 2)]
#self.line_in_file = self.chunk_start[0][1]
self.chunk_start = [(rest, number)]
self.line_in_file = number
elif com.startswith("textdomain "):
self.textdomain = com[11:]
else: