[open-ils-commits] r16669 - branches/rel_1_6/build/i18n/scripts (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 10 23:40:18 EDT 2010
Author: dbs
Date: 2010-06-10 23:40:15 -0400 (Thu, 10 Jun 2010)
New Revision: 16669
Modified:
branches/rel_1_6/build/i18n/scripts/ils_events.py
Log:
Backport r16667 from trunk: 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: branches/rel_1_6/build/i18n/scripts/ils_events.py
===================================================================
--- branches/rel_1_6/build/i18n/scripts/ils_events.py 2010-06-11 03:32:22 UTC (rev 16668)
+++ branches/rel_1_6/build/i18n/scripts/ils_events.py 2010-06-11 03:40:15 UTC (rev 16669)
@@ -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