From 12eee3395251ae332cc1d8f1cfc285c869325a40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Thu, 27 Jul 2023 20:11:33 +0300
Subject: [PATCH 1/1] Atom: HTML output has empty elements for empty lines
utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils.py b/utils.py
index 0ad70c3..e449561 100644
--- a/utils.py
+++ b/utils.py
@@ -223,7 +223,7 @@ def gemtext_to_html(src):
in_quote = False
in_pre = False
rend = None
is_bullet = False
is_angle = False
@@ -275,7 +275,7 @@ def gemtext_to_html(src):
elif line.startswith('```'):
in_pre = True
rend = '<pre>'
elif line:
else:
rend = f'<p>{atom_escaped(line)}</p>'
if rend is not None:
--
2.25.1
text/plain
This content has been proxied by September (3851b).