From 90dccbb77785412fd5e40c31c1659b6ed0442689 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Tue, 10 Aug 2021 19:16:33 +0200 Subject: [PATCH] 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. --- elpher.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.20.1