Remove the newline from all generated translation ready strings
This commit is contained in:
parent
7e1765c26b
commit
ae2288a982
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user