* mdocml: Do not increment .Bl -enum list markers beyond two digits.
@ 2017-03-08 17:41 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-03-08 17:41 UTC (permalink / raw)
To: source
Log Message:
-----------
Do not increment .Bl -enum list markers beyond two digits.
Otherwise, we would indent subsequent paragraphs less than
the CommonMark specification requires, harming portability.
Modified Files:
--------------
mdocml:
mdoc_markdown.c
Revision Data
-------------
Index: mdoc_markdown.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mdoc_markdown.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -Lmdoc_markdown.c -Lmdoc_markdown.c -u -p -r1.10 -r1.11
--- mdoc_markdown.c
+++ 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:
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-08 17:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-08 17:41 mdocml: Do not increment .Bl -enum list markers beyond two digits schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).