diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2024-02-04 23:51:02 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2024-02-04 23:51:02 +0100 |
| commit | fb0da1eec8c545c3010bc3e838a402ce6ebd31d5 (patch) | |
| tree | f968262837a41fe05f15efc6153d39f53eb67660 /src | |
| parent | 394fd62bb7fd408ed2fda3e07f60294397a71652 (diff) | |
Don't close br
Diffstat (limited to 'src')
| -rw-r--r-- | src/gemini_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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!("<p>{}</p>\n", encoded_line.trim()), - LineType::Blank => "<br/>\n".to_string(), + LineType::Blank => "<br>\n".to_string(), LineType::Link => { let url = get_link_address(line); if url.starts_with("gemini:") { |