aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-11 06:31:02 +0000
committerFuwn <[email protected]>2025-09-11 06:31:02 +0000
commitf213db5e8ac58fc8bde7cc0e13ae72dcd66d75a9 (patch)
tree95c3e3747b0816e4d9cb68633eb30b551fefba02
parentrefactor: Optimise allocations and string operations (diff)
downloadgerm-f213db5e8ac58fc8bde7cc0e13ae72dcd66d75a9.tar.xz
germ-f213db5e8ac58fc8bde7cc0e13ae72dcd66d75a9.zip
fix(ast): Improve trailing newline trimming
-rw-r--r--src/ast/container.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/container.rs b/src/ast/container.rs
index fe4f949..d3f57b5 100644
--- a/src/ast/container.rs
+++ b/src/ast/container.rs
@@ -158,7 +158,7 @@ impl Ast {
}
}
- if gemtext.ends_with('\n') && !gemtext.ends_with("\n\n") {
+ if gemtext.ends_with('\n') {
gemtext.pop();
}