diff options
| author | Fuwn <[email protected]> | 2025-09-11 06:31:02 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-11 06:31:02 +0000 |
| commit | f213db5e8ac58fc8bde7cc0e13ae72dcd66d75a9 (patch) | |
| tree | 95c3e3747b0816e4d9cb68633eb30b551fefba02 | |
| parent | refactor: Optimise allocations and string operations (diff) | |
| download | germ-f213db5e8ac58fc8bde7cc0e13ae72dcd66d75a9.tar.xz germ-f213db5e8ac58fc8bde7cc0e13ae72dcd66d75a9.zip | |
fix(ast): Improve trailing newline trimming
| -rw-r--r-- | src/ast/container.rs | 2 |
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(); } |