Kaydet (Commit) e87108c5 authored tarafından Caolán McNamara's avatar Caolán McNamara

further bodge bad translations with mismatching starting newlines

Change-Id: I91d559596dcfbca603613bc4e9db7fe3348984c6
üst b761db42
...@@ -65,6 +65,10 @@ if npos > 0: ...@@ -65,6 +65,10 @@ if npos > 0:
comments[-1] = polib.genKeyId(keyid.encode('utf-8')) comments[-1] = polib.genKeyId(keyid.encode('utf-8'))
entry.comment = "\n".join(comments) entry.comment = "\n".join(comments)
if (len(entry.msgid) and len(entry.msgstr)): 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'): if (entry.msgid[-1] == '\n' and entry.msgstr[-1] != '\n'):
entry.msgstr = entry.msgstr + '\n' entry.msgstr = entry.msgstr + '\n'
elif (entry.msgid[-1] != '\n' and entry.msgstr[-1] == '\n'): elif (entry.msgid[-1] != '\n' and entry.msgstr[-1] == '\n'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment