From c99c9af8a0b6b18f307e247c333d8b1d18d14bf2 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Tue, 17 Aug 2021 16:31:15 +0000 Subject: [PATCH] Remove spurious newline generation in Gemini to gopher conversion. --- bin/populate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/populate.py b/bin/populate.py index 55adcd1..45dc705 100755 --- a/bin/populate.py +++ b/bin/populate.py @@ -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()