X-Git-Url: https://git.r.bdr.sh/rbdr/page/blobdiff_plain/f07392253d4db57964eae389dab219c963dd4c95..d843a0b2c2590b96781a6c12af6c856b8056bf64:/src/gemini_parser.rs?ds=inline diff --git a/src/gemini_parser.rs b/src/gemini_parser.rs index 14d74c6..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:") { @@ -146,7 +146,7 @@ fn get_line_opener(line_type: &LineType, block_label: Option<&String>) -> String LineType::Quote => "
".to_string(), LineType::PreformattedText => { if let Some(label) = &block_label { - return format!("
", label);
+                return format!("
", label);
             } else {
                 return "
".to_string();
             }