commit 8cd9e45fce6e1f0425940d676ec823a939f8988e
parent 62898d3938a32038157addcadc1568413557a102
Author: Björn Wärmedal <bjorn.warmedal@storytel.com>
Date: Thu, 27 Jan 2022 09:09:46 +0100
link line format improved
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/av98.py b/av98.py
@@ -936,9 +936,7 @@ you'll be able to transparently follow links to Gopherspace!""")
def _format_geminiitem(self, index, gi, url=False):
protocol = "" if gi.scheme == "gemini" else " %s" % gi.scheme
- line = "[%d%s] %s" % (index, protocol, gi.name or gi.url)
- if gi.name and url:
- line += " (%s)" % gi.url
+ line = f"[{index}{protocol}] {gi.url} {gi.name}" if gi.name and url else f"[{index}{protocol}] {gi.name}"
return line
def _show_lookup(self, offset=0, end=None, url=False):