aboutsummaryrefslogtreecommitdiff
path: root/src/html.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-19 07:55:52 +0000
committerFuwn <[email protected]>2024-06-19 07:56:56 +0000
commit113bafa4ecb991ed2dfc0847faf356a0ab69767e (patch)
treecc9e1fbe6e35bd7fe0986f3bd37c746b5c2ca5e9 /src/html.rs
parentrefactor: remove long file headers (diff)
downloadseptember-113bafa4ecb991ed2dfc0847faf356a0ab69767e.tar.xz
september-113bafa4ecb991ed2dfc0847faf356a0ab69767e.zip
feat: bump september
Diffstat (limited to 'src/html.rs')
-rw-r--r--src/html.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/html.rs b/src/html.rs
index 2574d8b..b35e41c 100644
--- a/src/html.rs
+++ b/src/html.rs
@@ -4,7 +4,13 @@ fn link_from_host_href(url: &Url, href: &str) -> Option<String> {
Some(format!(
"gemini://{}{}{}",
url.domain()?,
- { if href.starts_with('/') { "" } else { "/" } },
+ {
+ if href.starts_with('/') {
+ ""
+ } else {
+ "/"
+ }
+ },
href
))
}