aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/html.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/html.rs b/src/html.rs
index 299242c..64ec6ae 100644
--- a/src/html.rs
+++ b/src/html.rs
@@ -255,7 +255,11 @@ pub fn from_gemini(
html.push_str(&format!("<blockquote>{}</blockquote>", safe(text)));
}
Node::PreformattedText { text, .. } => {
- html.push_str(&format!("<pre>{}</pre>", safe(text)));
+ let mut new_text = text.to_string();
+
+ new_text.pop();
+
+ html.push_str(&format!("<pre>{new_text}</pre>"));
}
Node::Whitespace => {}
}