From de270932ff0528b3e07c8dd7aad5adbd040e07fe Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 15 Jul 2022 19:26:30 +0200 Subject: Fix compiling final eof after list items --- src/compiler.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler.rs') 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(); } -- cgit