# HG changeset patch # User fschwarz # Date 1344021470 0 # Node ID 99706377c9301285386b924b9c5be3f8467cbd66 # Parent ea413a4d754bbd3f20beafa38997358625d8a5a3 small code cleanup in write_po() diff --git a/babel/messages/pofile.py b/babel/messages/pofile.py --- a/babel/messages/pofile.py +++ b/babel/messages/pofile.py @@ -442,10 +442,8 @@ for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') - comment_header = u'\n'.join(lines) + u'\n' - else: - comment_header += u'\n' - _write(comment_header) + comment_header = u'\n'.join(lines) + _write(comment_header + u'\n') for comment in message.user_comments: _write_comment(comment)