From: Ruben Beltran del Rio Date: Sun, 4 Feb 2024 22:51:02 +0000 (+0100) Subject: Don't close br X-Git-Tag: 1.3.1~6 X-Git-Url: https://git.r.bdr.sh/rbdr/page/commitdiff_plain/fb0da1eec8c545c3010bc3e838a402ce6ebd31d5?ds=sidebyside;hp=394fd62bb7fd408ed2fda3e07f60294397a71652 Don't close br --- diff --git a/Cargo.lock b/Cargo.lock index 83a98a7..f8ef2e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,4 +4,4 @@ version = 3 [[package]] name = "page" -version = "1.3.0" +version = "1.3.1" diff --git a/Cargo.toml b/Cargo.toml index c148552..5879a10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page" -version = "1.3.0" +version = "1.3.1" edition = "2021" [dependencies] diff --git a/src/gemini_parser.rs b/src/gemini_parser.rs index af1a5e0..a7c752e 100644 --- a/src/gemini_parser.rs +++ b/src/gemini_parser.rs @@ -85,7 +85,7 @@ fn get_full_line_content(line_type: &LineType, line: &str) -> String { let encoded_line = line.replace("<", "<").replace(">", ">"); match line_type { LineType::Text => format!("

{}

\n", encoded_line.trim()), - LineType::Blank => "
\n".to_string(), + LineType::Blank => "
\n".to_string(), LineType::Link => { let url = get_link_address(line); if url.starts_with("gemini:") {