diff options
Diffstat (limited to 'solenv/bin/interim-update-module-for-gettext')
-rwxr-xr-x | solenv/bin/interim-update-module-for-gettext | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/bin/interim-update-module-for-gettext b/solenv/bin/interim-update-module-for-gettext index 02508032aea3..67aecd9b6848 100755 --- a/solenv/bin/interim-update-module-for-gettext +++ b/solenv/bin/interim-update-module-for-gettext @@ -65,6 +65,10 @@ if npos > 0: comments[-1] = polib.genKeyId(keyid.encode('utf-8')) entry.comment = "\n".join(comments) if (len(entry.msgid) and len(entry.msgstr)): + if (entry.msgid[0] == '\n' and entry.msgstr[0] != '\n'): + entry.msgstr = '\n' + entry.msgstr + elif (entry.msgid[0] != '\n' and entry.msgstr[0] == '\n'): + entry.msgstr = ' ' + entry.msgstr if (entry.msgid[-1] == '\n' and entry.msgstr[-1] != '\n'): entry.msgstr = entry.msgstr + '\n' elif (entry.msgid[-1] != '\n' and entry.msgstr[-1] == '\n'): |