summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-03-08 15:08:18 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-03-08 15:08:18 +0000
commitd2fdde252b74852656808cb1774dc44e24cb48c0 (patch)
tree020a6cb7d2b6e2d85ab77679c576e0d0bad8e1ba /usr.bin
parentd24d6cb085cac3504422b5159bdf81525cbdff2f (diff)
.Bl -column never gets blank lines between rows
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mandoc/mdoc_markdown.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_markdown.c b/usr.bin/mandoc/mdoc_markdown.c
index bdec6949f81..fe3ad00e718 100644
--- a/usr.bin/mandoc/mdoc_markdown.c
+++ b/usr.bin/mandoc/mdoc_markdown.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_markdown.c,v 1.9 2017/03/08 14:29:49 schwarze Exp $ */
+/* $OpenBSD: mdoc_markdown.c,v 1.10 2017/03/08 15:08:17 schwarze Exp $ */
/*
* Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -1151,7 +1151,8 @@ md_pre_It(struct roff_node *n)
case ROFFT_HEAD:
bln = n->parent->parent;
- if (bln->norm->Bl.comp == 0)
+ if (bln->norm->Bl.comp == 0 &&
+ bln->norm->Bl.type != LIST_column)
outflags |= MD_sp;
outflags |= MD_nl;
@@ -1180,6 +1181,9 @@ md_pre_It(struct roff_node *n)
printf("%d.\t", ++bln->norm->Bl.count);
escflags &= ~ESC_FON;
break;
+ case LIST_column:
+ outflags |= MD_br;
+ return 0;
default:
return 0;
}