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