From e2b4f327d4dcd29312bebd5526a03abebd2e59a0 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Fri, 3 Aug 2012 19:17:50 +0000 Subject: [PATCH] small code cleanup in write_po() --- babel/messages/pofile.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) -- 2.47.3