From 9d11c67875e2aa23d23a84937abfb585de0c8fd9 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 15 Oct 2008 09:49:53 +0200 Subject: [PATCH] po files: allow empty lines between comments and msgid bzr revid: christophe@tinyerp.com-20081015074953-rx39rgezl92egybn --- bin/tools/translate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/tools/translate.py b/bin/tools/translate.py index bedac786534..277486f180f 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -116,6 +116,9 @@ class TinyPoFile(object): if line.startswith('#:'): tmp_tnrs.append( line[2:].strip().split(':') ) line = self.lines.pop(0).strip() + while not line: + # allow empty lines between comments and msgid + line = self.lines.pop(0).strip() if not line.startswith('msgid'): raise Exception("malformed file: bad line: %s" % line) source = unquote(line[6:])