From e3780ba39fb721ade60cb9823d24f2174a4762e8 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 15 Apr 2013 14:39:26 +0200 Subject: [PATCH] Strip newlines off map when loading --- erdslangetjie/level.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erdslangetjie/level.py b/erdslangetjie/level.py index 3214cf6..7905571 100644 --- a/erdslangetjie/level.py +++ b/erdslangetjie/level.py @@ -15,7 +15,7 @@ class Level(object): """Load the level""" self.data = [] for line in levelfile.readlines(): - self.data.append(list(line)) + self.data.append(list(line.strip('\n'))) def load_tiles(self): """Load the list of tiles for the level""" -- 2.34.1