[open-ils-commits] r16667 - trunk/build/i18n/scripts (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jun 10 23:27:49 EDT 2010


Author: dbs
Date: 2010-06-10 23:27:47 -0400 (Thu, 10 Jun 2010)
New Revision: 16667

Modified:
   trunk/build/i18n/scripts/ils_events.py
Log:
Remove extraneous whitespace in ILS events POT file

We were grabbing everything - tabs, newlines, extra spaces - from
ils_events.xml, and we don't want to do that.


Modified: trunk/build/i18n/scripts/ils_events.py
===================================================================
--- trunk/build/i18n/scripts/ils_events.py	2010-06-10 20:10:42 UTC (rev 16666)
+++ trunk/build/i18n/scripts/ils_events.py	2010-06-11 03:27:47 UTC (rev 16667)
@@ -141,12 +141,13 @@
         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)



More information about the open-ils-commits mailing list