--- /usr/lib/python2.3/gettext.py 2006-03-08 07:52:07.000000000 +0100 +++ /home/syt/cvs_work/gettext.py 2006-04-24 14:53:48.000000000 +0200 @@ -261,19 +261,18 @@ # See if we're looking at GNU .mo conventions for metadata if mlen == 0: # Catalog description + # don't handle multi-lines fields here, and skip + # lines which don't look like a header description + # (e.g. "header: value") lastk = k = None for item in tmsg.splitlines(): item = item.strip() - if not item: + if not item or not ':' in item: continue - if ':' in item: - k, v = item.split(':', 1) - k = k.strip().lower() - v = v.strip() - self._info[k] = v - lastk = k - elif lastk: - self._info[lastk] += '\n' + item + k, v = item.split(':', 1) + k = k.strip().lower() + v = v.strip() + self._info[k] = v if k == 'content-type': self._charset = v.split('charset=')[1] elif k == 'plural-forms':