diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-13 18:39:35 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-13 18:39:35 +0100 |
| commit | 9d687f8c5a45f72cb0040bb2d0441d04ea9987fb (patch) | |
| tree | 309a5a9067cb6efe5b68a05c7b9d0d11356169a0 /src | |
| parent | 5f7e1e310aafc765684463d3ae00359c652cd751 (diff) | |
Fix lints
Diffstat (limited to 'src')
| -rw-r--r-- | src/html_renderer.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/html_renderer.rs b/src/html_renderer.rs index 503337b..fccf163 100644 --- a/src/html_renderer.rs +++ b/src/html_renderer.rs @@ -105,7 +105,11 @@ fn line_content(line: &GeminiLine) -> String { } else { processed_url = url.to_string(); } - let display = if text.is_empty() { &processed_url } else { text }; + let display = if text.is_empty() { + &processed_url + } else { + text + }; format!("<p class=\"a\"><a href=\"{processed_url}\">{display}</a></p>") } GeminiLine::Heading(level, content) => format!("<h{level}>{content}</h{level}>"), |