Remove spurious newline generation in Gemini to gopher conversion.

This commit is contained in:
Solderpunk 2021-08-17 16:31:15 +00:00
parent 8fd44ef8ac
commit c99c9af8a0
1 changed files with 2 additions and 2 deletions

View File

@ -103,9 +103,9 @@ def gemini_to_gopher(article, txt_path):
if line.startswith("```"): if line.startswith("```"):
verbatim = not verbatim verbatim = not verbatim
elif verbatim: elif verbatim:
fp_out.write(line+"\n") fp_out.write(line)
elif line.startswith("=> "): elif line.startswith("=> "):
fp_out.write(line+"\n") fp_out.write(line)
else: else:
fp_out.write(textwrap.fill(line, 80)+"\n") fp_out.write(textwrap.fill(line, 80)+"\n")
fp_in.close() fp_in.close()