summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-08 02:01:17 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-08 02:01:17 +0000
commit76dc3b0723ab0b45094e0813d300e5258d6372db (patch)
treef4d9352aada7f4b6fbf1dd6a77e88516421a9c3d
parentc81e4b80275400dcb0530e3f1c5cae2fc53e4aab (diff)
downloadmandoc-76dc3b0723ab0b45094e0813d300e5258d6372db.tar.gz
Tolerate bare tabs in SYNOPSIS .Cd for now.
It's used in half a dozen pages. Even though i have been thinking about it for years, i still can't suggest anything better. The false positives are annoying.
-rw-r--r--mdoc_validate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 49168e51..bae79cbf 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -297,7 +297,8 @@ mdoc_node_validate(struct roff_man *mdoc)
mdoc->next = ROFF_NEXT_SIBLING;
switch (n->type) {
case ROFFT_TEXT:
- if (n->sec != SEC_SYNOPSIS || n->parent->tok != MDOC_Fd)
+ if (n->sec != SEC_SYNOPSIS ||
+ (n->parent->tok != MDOC_Cd && n->parent->tok != MDOC_Fd))
check_text(mdoc, n->line, n->pos, n->string);
break;
case ROFFT_EQN: