From 07bb34c54a53c447f8068fcd26c616cbe2386966 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 1 Oct 2007 21:11:16 +0200 Subject: Use strip instead of split in Styles.read. --- pykfx/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykfx/__init__.py b/pykfx/__init__.py index 71167db..98c0cbe 100644 --- a/pykfx/__init__.py +++ b/pykfx/__init__.py @@ -74,7 +74,7 @@ class Styles: s = Style(self.format, s) self.styles[s.name.lower()] = s self.names.append(s.name.lower()) - s = f.readline().split() + s = f.readline().strip() def write(self, f): f.write('[V4+ Styles]\n') -- cgit v1.2.3