From 53a0ef3daf75d80177aa41e2524664d6d78bd9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 20 Apr 2021 03:21:05 +0300 Subject: [PATCH] Remove the unnecessary / from ends of self-closing html elements --- neomi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neomi.py b/neomi.py index c79eb51..c0b5d2c 100644 --- a/neomi.py +++ b/neomi.py @@ -28,7 +28,7 @@ default_config.no_itemtype_whitelist = {'robots.txt', 'favicon.ico'} default_config.hurl_redirect_page = """ - + Redirecting to __escaped_url__ @@ -622,7 +622,7 @@ def send_gophermap(sock, reader, protocol, *, config): if itemtype == b'i': # Text - sock.sendall(html_encode(name) + b'
\n') + sock.sendall(html_encode(name) + b'
\n') else: # Link @@ -635,7 +635,7 @@ def send_gophermap(sock, reader, protocol, *, config): else: url = b'http://' + server + b':' + port + b'/' + itemtype + urllib.parse.quote_from_bytes(path).encode('utf-8') - sock.sendall(b'' + html_encode(name) + b'
\n') + sock.sendall(b'' + html_encode(name) + b'
\n') # Send footer of the HTML file sock.sendall(b'

')