summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-02-09 23:16:09 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-02-09 23:16:09 -0800
commit4d2d486333c358eb3adf3d0649163e319a3b8b69 (patch)
tree547d704567f002c6627284620184048fd82fc808
parent3f88d95c83ba9443ce9df50561d39c037e60b617 (diff)
Simplified condition for lazy line.
-rw-r--r--src/blocks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blocks.c b/src/blocks.c
index 152dd21..2630db4 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -1043,10 +1043,10 @@ static void S_process_line(cmark_parser *parser, const unsigned char *buffer,
// and the line isn't blank,
// then treat this as a "lazy continuation line" and add it to
// the open paragraph.
- if (parser->current != last_matched_container &&
- container == last_matched_container && !parser->blank &&
- parser->current->type == CMARK_NODE_PARAGRAPH &&
- cmark_strbuf_len(&parser->current->string_content) > 0) {
+ if (parser->current->type == CMARK_NODE_PARAGRAPH &&
+ parser->current != last_matched_container &&
+ container == last_matched_container &&
+ !parser->blank) {
add_line(parser->current, &input, parser);
} else { // not a lazy continuation
// Finalize any blocks that were not matched and set cur to container: