Code cleanup
This commit is contained in:
@@ -39,8 +39,6 @@ class Level:
|
||||
|
||||
rows = data.get("map", "").splitlines()
|
||||
# Strip a leading blank line from block-scalar formatting, keep shape.
|
||||
rows = [r for r in rows if r.strip("\n") != "" or True]
|
||||
rows = [r.rstrip("\n") for r in rows]
|
||||
if rows and rows[0] == "":
|
||||
rows = rows[1:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user