Mercurial > babel > old > mirror
diff babel/messages/pofile.py @ 122:03f106700f02
Added tests for `new_catalog` distutils command.
author | cmlenz |
---|---|
date | Fri, 15 Jun 2007 22:18:59 +0000 |
parents | ecc04be42086 |
children | 9e3d2b227ec3 |
line wrap: on
line diff
--- a/babel/messages/pofile.py +++ b/babel/messages/pofile.py @@ -114,12 +114,9 @@ if comment: # Just check that we're not adding empty comments auto_comments.append(comment) - elif line[1:].startswith(' '): + else: # These are called user comments - comment = line[1:].strip() - if comment: - # Just check that we're not adding empty comments - user_comments.append(comment) + user_comments.append(line[1:].strip()) else: if line.startswith('msgid_plural'): in_msgid = True