From 1bdc1d523fa42cc1bead6ffc17992c2fe1719e7e Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 13 Jan 2025 15:28:42 -0800 Subject: [PATCH] Update server.py --- server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index 35711b2..773957e 100644 --- a/server.py +++ b/server.py @@ -66,18 +66,18 @@ def relay(): if i.split(" ")[1] != "text/gemini": return f'\nSomething went wrong...

Something went wrong...

This path returned a file that isn\'t Gemtext, which Gem2Browser doesn\'t support downloading files.

' else: - if i[0:1] == "# ": + if i[0:2] == "# ": if title == "Something went wrong...": title = i[2:] temp = i[2:] code += f"

{temp}

\n" - elif i[0:2] == "## ": + elif i[0:3] == "## ": temp = i[3:] code += f"

{temp}

\n" - elif i[0:3] == "### ": + elif i[0:4] == "### ": temp = i[4:] code += f"

{temp}

\n" - elif i[0:1] == "* ": + elif i[0:2] == "* ": temp = i[2:] code += f"" else: