Skip to content

Commit

Permalink
SConstruct: add new lines at the end of custom braille tables section…
Browse files Browse the repository at this point in the history
… if present
  • Loading branch information
josephsl committed May 9, 2024
1 parent 4b844ab commit bc2f980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def generateManifest(source, dest):
manifest_brailleTables.append(f"[[{table}]]")
for key, val in buildVars.brailleTables[table].items():
manifest_brailleTables.append(f"{key} = {val}")
manifest += "\n".join(manifest_brailleTables)
manifest += f"{'\n'.join(manifest_brailleTables)}\n"
with codecs.open(dest, "w", "utf-8") as f:
f.write(manifest)

Expand All @@ -211,7 +211,7 @@ def generateTranslatedManifest(source, language, out):
result_brailleTables.append(f"[[{table}]]")
# Fetch display name only.
result_brailleTables.append(f"displayName = {buildVars.brailleTables[table]["displayName"]}")
result += "\n".join(result_brailleTables)
result += f"{'\n'.join(result_brailleTables)}\n"
with codecs.open(out, "w", "utf-8") as f:
f.write(result)

Expand Down

0 comments on commit bc2f980

Please sign in to comment.