Commit 1d181b61 authored by Manuel Cortez's avatar Manuel Cortez

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

parent c5b9f668
......@@ -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:
......
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