aboutsummaryrefslogtreecommitdiff
path: root/src/html.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-04-02 08:30:12 +0000
committerFuwn <[email protected]>2024-04-02 08:30:12 +0000
commit4aa98e8068e022f6af2f9175fb6a29842960d6bf (patch)
treee015ef383c35dc9550a17be875c3b9eb94f357dc /src/html.rs
parentfeat(css): larget font size (diff)
downloadseptember-4aa98e8068e022f6af2f9175fb6a29842960d6bf.tar.xz
september-4aa98e8068e022f6af2f9175fb6a29842960d6bf.zip
feat(cargo): bump version
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 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
))
}