diff options
| author | Fuwn <[email protected]> | 2024-04-02 08:30:12 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-04-02 08:30:12 +0000 |
| commit | c649a2217402d4058de42aae876769501c92c4d3 (patch) | |
| tree | 007742b19b2147bbaf9e311fc2576d4ad6be3511 /src/html.rs | |
| parent | feat(css): larget font size (diff) | |
| download | september-c649a2217402d4058de42aae876769501c92c4d3.tar.xz september-c649a2217402d4058de42aae876769501c92c4d3.zip | |
feat(cargo): bump version
Diffstat (limited to 'src/html.rs')
| -rw-r--r-- | src/html.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/html.rs b/src/html.rs index b86c496..d50501c 100644 --- a/src/html.rs +++ b/src/html.rs @@ -21,7 +21,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 )) } |