From: Alex Schroeder Date: Tue, 10 Aug 2021 22:58:14 +0000 (+0200) Subject: Fix display of local file links X-Git-Tag: v3.3.0~14^2 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=commitdiff_plain;h=a29c52d16bdae8fdae32bd71369863d5a7047deb;hp=a29c52d16bdae8fdae32bd71369863d5a7047deb Fix display of local file links The code that shows an IRI for URLs if no display-string is provided used to display with double slashes when it happened upon a simple local filename link, like this: => /some/file.gmi Result: → ///some/file.gmi In order to fix this, we need to make sure that url-fullness remains nil. This commit makes sure that it is only set if the URL in question does in fact have a non-empty host (an empty host results in a host of "" is a true value, so we need an extra test using string-empty-p). This happens in both elpher-address-from-url and elpher-address-from-gemini-url. ---