Documentation_importer: Now blank lines will not be created at gettext translatable strings
This commit is contained in:
parent
c5b9f668b2
commit
1d181b61a3
@ -13,8 +13,8 @@ def prepare_documentation_in_file(fileSource, fileDest):
|
|||||||
f2.write("# -*- coding: utf-8 -*-\n")
|
f2.write("# -*- coding: utf-8 -*-\n")
|
||||||
f2.write("documentation = [\n")
|
f2.write("documentation = [\n")
|
||||||
for i in lns:
|
for i in lns:
|
||||||
if "\n" == i:
|
if "\n" == i or i.splitlines()[0] == "":
|
||||||
newvar = "\"\","
|
newvar = "\"\",\n"
|
||||||
elif "\n" == i[-1]:
|
elif "\n" == i[-1]:
|
||||||
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i.splitlines()[0])
|
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i.splitlines()[0])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user