Mercurial > babel > old > babel-test
diff babel/messages/pofile.py @ 120:733cca7ff6a5
Added tests for `new_catalog` distutils command.
author | cmlenz |
---|---|
date | Fri, 15 Jun 2007 22:18:59 +0000 |
parents | 9a2c3d76fce9 |
children | 60565dc8495d |
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