From 09b6a04ee943fa16b286b912d09f78a3f480c773 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 8 Mar 2017 17:40:55 +0000 Subject: Do not increment .Bl -enum list markers beyond two digits. Otherwise, we would indent subsequent paragraphs less than the CommonMark specification requires, harming portability. --- mdoc_markdown.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mdoc_markdown.c') diff --git a/mdoc_markdown.c b/mdoc_markdown.c index ff797bfd..cb28ee1e 100644 --- a/mdoc_markdown.c +++ b/mdoc_markdown.c @@ -1178,7 +1178,9 @@ md_pre_It(struct roff_node *n) break; case LIST_enum: md_preword(); - printf("%d.\t", ++bln->norm->Bl.count); + if (bln->norm->Bl.count < 99) + bln->norm->Bl.count++; + printf("%d.\t", bln->norm->Bl.count); escflags &= ~ESC_FON; break; case LIST_column: -- cgit