Documentation_importer: Now blank lines will not be created at gettext translatable strings

This commit is contained in:
Manuel Cortez 2020-02-28 16:59:14 -06:00
parent c5b9f668b2
commit 1d181b61a3

View File

@ -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: