From 4daed4f89d70bf1a587215eceabbfd5b249be3af Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 11 Jun 2010 03:27:47 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.open-ils.org/ILS/trunk@16667 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- build/i18n/scripts/ils_events.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/i18n/scripts/ils_events.py b/build/i18n/scripts/ils_events.py index 1b8193c8d..0afcc4cac 100755 --- a/build/i18n/scripts/ils_events.py +++ b/build/i18n/scripts/ils_events.py @@ -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) -- 2.11.0