From 409a17f23e80f61df3595764f313c2813deae761 Mon Sep 17 00:00:00 2001 From: vulcan-action Date: Mon, 17 Oct 2022 10:01:50 +0000 Subject: [PATCH] Fixed automatically #539 by Vulcan --- md4c/md4c.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/md4c/md4c.c b/md4c/md4c.c index dabd89959..8a84b2806 100644 --- a/md4c/md4c.c +++ b/md4c/md4c.c @@ -5486,18 +5486,15 @@ md_is_container_mark(MD_CTX* ctx, unsigned indent, OFF beg, OFF* p_end, MD_CONTA p_container->start = p_container->start * 10 + CH(off) - _T('0'); off++; } - if(off+1 < ctx->size && - (CH(off) == _T('.') || CH(off) == _T(')')) && - (ISBLANK(off+1) || ISNEWLINE(off+1))) - { - p_container->ch = CH(off); - p_container->is_loose = FALSE; - p_container->is_task = FALSE; - p_container->mark_indent = indent; - p_container->contents_indent = indent + off - beg + 1; - *p_end = off + 1; - return TRUE; - } + if ((off + 1 < ctx->size && ((ctx->text[(off)]) == '.' || (ctx->text[(off)]) == ')') && ((((((ctx->text[(off + 1)]))) == (' ') || (((ctx->text[(off + 1)]))) == ('\t'))) || (((((ctx->text[(off + 1)]))) == ('\r') || (((ctx->text[(off + 1)]))) == ('\n'))))) && !(off < 2)) { + p_container->ch = (ctx->text[(off)]); + p_container->is_loose = 0; + p_container->is_task = 0; + p_container->mark_indent = indent; + p_container->contents_indent = indent + off - beg + 1; + *p_end = off + 1; + return 1; +} return FALSE; }