From: Felix Schwarz Date: Fri, 3 Aug 2012 19:17:50 +0000 (+0000) Subject: small code cleanup in write_po() X-Git-Tag: 1.0~166 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2b4f327d4dcd29312bebd5526a03abebd2e59a0;p=thirdparty%2Fbabel.git small code cleanup in write_po() --- diff --git a/babel/messages/pofile.py b/babel/messages/pofile.py index b42e0393..889e4d3a 100644 --- a/babel/messages/pofile.py +++ b/babel/messages/pofile.py @@ -442,10 +442,8 @@ def write_po(fileobj, catalog, width=76, no_location=False, omit_header=False, 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)