Remove the newline from all generated translation ready strings

This commit is contained in:
Manuel Cortez 2020-02-28 15:38:39 -06:00
parent 7e1765c26b
commit ae2288a982

View File

@ -16,7 +16,7 @@ def prepare_documentation_in_file(fileSource, fileDest):
if "\n" == i:
newvar = "\"\","
elif "\n" == i[-1]:
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i[:-1])
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i.splitlines()[0])
else:
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i)
f2.write(newvar)