Commit ae2288a9 authored by Manuel Cortez's avatar Manuel Cortez

Remove the newline from all generated translation ready strings

parent 7e1765c2
......@@ -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)
......
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