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("```"):
verbatim = not verbatim
elif verbatim:
fp_out.write(line+"\n")
fp_out.write(line)
elif line.startswith("=> "):
fp_out.write(line+"\n")
fp_out.write(line)
else:
fp_out.write(textwrap.fill(line, 80)+"\n")
fp_in.close()