Remove spurious newline generation in Gemini to gopher conversion.
This commit is contained in:
parent
8fd44ef8ac
commit
c99c9af8a0
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue