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 | 50cd3d79210953caa442899a8d1745e807a39de5 (patch) | |
| tree | e015ef383c35dc9550a17be875c3b9eb94f357dc | |
| parent | feat(css): larget font size (diff) | |
| download | september-0.2.14.tar.xz september-0.2.14.zip | |
feat(cargo): bump versionv0.2.14
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | src/html.rs | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -2,7 +2,7 @@ [package] name = "september" -version = "0.2.13" +version = "0.2.14" authors = ["Fuwn <[email protected]>"] edition = "2021" description = "A simple and efficient Gemini-to-HTTP proxy." 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 )) } |