From: Alex Schroeder Date: Tue, 10 Aug 2021 17:16:33 +0000 (+0200) Subject: Show IRIs when no display text is available X-Git-Tag: v3.3.0~14^2~1 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=90dccbb77785412fd5e40c31c1659b6ed0442689;p=elpher.git Show IRIs when no display text is available When using the URL in a Gemini link-line as a display-string, turn it into an IRI. --- diff --git a/elpher.el b/elpher.el index 3656189..a265a8f 100644 --- a/elpher.el +++ b/elpher.el @@ -1463,7 +1463,7 @@ Returns the url portion in the event that the display-string portion is empty." (idx (string-match "[ \t]" rest))) (string-trim (if idx (substring rest (+ idx 1)) - rest)))) + (elpher-address-to-iri (elpher-address-from-url (elpher-decode (url-unhex-string rest)))))))) (defun elpher-collapse-dot-sequences (filename) "Collapse dot sequences in the (absolute) FILENAME.