Remove extraneous whitespace in ILS events POT file
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Jun 2010 03:27:47 +0000 (03:27 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Jun 2010 03:27:47 +0000 (03:27 +0000)
We were grabbing everything - tabs, newlines, extra spaces - from
ils_events.xml, and we don't want to do that.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16667 dcc99617-32d9-48b4-a31d-7c20da2025e4

build/i18n/scripts/ils_events.py

index 1b8193c..0afcc4c 100755 (executable)
@@ -141,12 +141,13 @@ class ILSEventHandler(xml.sax.handler.ContentHandler):
         Build the ILS event description
         """
         if self.en_us_flag is True and content is not None:
-            self.desc += content
+            self.desc = self.desc.strip() + ' ' + content.strip()
 
     def endElement(self, name):
         """
         Generate the event with the closed description
         """
+        self.desc = self.desc.strip()
         if name == 'desc' and self.en_us_flag is True:
             lineno = self.locator.getLineNumber()
             event = "%d.%s" % (int(self.numcode), self.textcode)