DreamInfoHandler.py: strip data. refs #578
authoracid-burn <acid-burn@opendreambox.org>
Wed, 29 Sep 2010 07:28:40 +0000 (09:28 +0200)
committeracid-burn <acid-burn@opendreambox.org>
Wed, 29 Sep 2010 07:31:03 +0000 (09:31 +0200)
lib/python/Components/DreamInfoHandler.py

index 4030567..03d5215 100755 (executable)
@@ -123,7 +123,7 @@ class InfoHandler(xml.sax.ContentHandler):
                if self.elements[-1] == "shortdescription":
                        self.attributes["shortdescription"] = str(data)
                if self.elements[-1] == "description":
                if self.elements[-1] == "shortdescription":
                        self.attributes["shortdescription"] = str(data)
                if self.elements[-1] == "description":
-                       self.data += data
+                       self.data += data.strip()
                        self.attributes["description"] = str(self.data)
                #print "characters", data
 
                        self.attributes["description"] = str(self.data)
                #print "characters", data