mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 07:55:38 +00:00
Revert "[wmlunits] Disable crashing chunk_start stuff someone added."
This reverts commit 8aa0febfde421f4f2a986679e0a9912d0d6277d0. As spaces in filenames are now illegal, this is no longer a problem.
This commit is contained in:
parent
bb5663f92e
commit
a6630a3a08
@ -476,14 +476,9 @@ class Parser:
|
||||
def handle_command(self, com):
|
||||
if com.startswith("line "):
|
||||
self.last_wml_line = com[5:]
|
||||
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
|
||||
_ = 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]
|
||||
elif com.startswith("textdomain "):
|
||||
self.textdomain = com[11:]
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user