aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 10:44:06 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 10:46:14 +0200
commit32f9f35d89e41072543186969b995ac9aa020f98 (patch)
treeb506e056ed810e6a11570c350316b12f500344da /src
parent3aa10425c95bbe79050c3166702e38758fbe646e (diff)
downloadmarkdown-rs-32f9f35d89e41072543186969b995ac9aa020f98.tar.gz
markdown-rs-32f9f35d89e41072543186969b995ac9aa020f98.tar.bz2
markdown-rs-32f9f35d89e41072543186969b995ac9aa020f98.zip
Fix final bug with laziness
Diffstat (limited to '')
-rw-r--r--src/content/document.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/content/document.rs b/src/content/document.rs
index 704cfea..7656db7 100644
--- a/src/content/document.rs
+++ b/src/content/document.rs
@@ -393,14 +393,7 @@ fn flow_end(
.token_type
== Token::Paragraph;
- if tokenizer.lazy
- && info.paragraph_before
- && paragraph
- && !(matches!(
- tokenizer.previous,
- Code::CarriageReturnLineFeed | Code::Char('\n' | '\r')
- ) && matches!(code, Code::None))
- {
+ if tokenizer.lazy && info.paragraph_before && paragraph {
info.continued = info.stack.len();
}