mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
Merge pull request #40721 from AutomaticFrenzy/patch/carriage-return
Ignore carriage returns in map files when mapmerging
This commit is contained in:
@@ -370,7 +370,7 @@ def _parse(map_raw_text):
|
||||
continue
|
||||
elif in_comment_line:
|
||||
continue
|
||||
elif char == "\t":
|
||||
elif char in "\r\t":
|
||||
continue
|
||||
|
||||
if char == "/" and not in_quote_block:
|
||||
@@ -478,6 +478,9 @@ def _parse(map_raw_text):
|
||||
|
||||
# grid block
|
||||
for char in it:
|
||||
if char == "\r":
|
||||
continue
|
||||
|
||||
if in_coord_block:
|
||||
if char == ",":
|
||||
if reading_coord == "x":
|
||||
|
||||
Reference in New Issue
Block a user