From: Neil Date: Mon, 15 Apr 2013 12:39:26 +0000 (+0200) Subject: Strip newlines off map when loading X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=e3780ba39fb721ade60cb9823d24f2174a4762e8;p=erdslangetjie.git Strip newlines off map when loading --- 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"""