aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-15 19:26:30 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-15 19:26:30 +0200
commitde270932ff0528b3e07c8dd7aad5adbd040e07fe (patch)
tree1f06a373225b110834f6c91fbbd599b687a1c930 /src/compiler.rs
parentb0a2ce50ecb1a1531b2f7dc4591c9809bb23ed55 (diff)
downloadmarkdown-rs-de270932ff0528b3e07c8dd7aad5adbd040e07fe.tar.gz
markdown-rs-de270932ff0528b3e07c8dd7aad5adbd040e07fe.tar.bz2
markdown-rs-de270932ff0528b3e07c8dd7aad5adbd040e07fe.zip
Fix compiling final eof after list items
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index 6484aaa..c4178d4 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -1191,6 +1191,8 @@ fn on_exit_list_item(context: &mut CompileContext) {
let tight_paragraph = *tight && previous.token_type == Token::Paragraph;
let empty_item = previous.token_type == Token::ListItemPrefix;
+ context.slurp_one_line_ending = false;
+
if !tight_paragraph && !empty_item {
context.line_ending_if_needed();
}