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:
|
if "\n" == i:
|
||||||
newvar = "\"\","
|
newvar = "\"\","
|
||||||
elif "\n" == i[-1]:
|
elif "\n" == i[-1]:
|
||||||
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i[:-1])
|
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i.splitlines()[0])
|
||||||
else:
|
else:
|
||||||
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i)
|
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i)
|
||||||
f2.write(newvar)
|
f2.write(newvar)
|
||||||
|
Loading…
Reference in New Issue
Block a user