diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-14 13:23:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-02-14 13:23:57 +0000 |
commit | 7ce97d9a565bdb748de6db4d2e48ae32d727c511 (patch) | |
tree | e4b8d2877145348d25d19c221cd1a309627960c1 | |
parent | a888b58214d5e63bea347c4bd5e131ceb7208c56 (diff) | |
download | mandoc-7ce97d9a565bdb748de6db4d2e48ae32d727c511.tar.gz mandoc-7ce97d9a565bdb748de6db4d2e48ae32d727c511.tar.zst mandoc-7ce97d9a565bdb748de6db4d2e48ae32d727c511.zip |
shut up about tabs in SYNOPSIS .Fd lines, there is no good way to avoid them
-rw-r--r-- | mdoc_validate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 6176c975..f37e4c37 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.278 2015/02/12 12:24:33 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.279 2015/02/14 13:23:57 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -298,7 +298,8 @@ mdoc_valid_pre(struct mdoc *mdoc, struct mdoc_node *n) switch (n->type) { case MDOC_TEXT: - check_text(mdoc, n->line, n->pos, n->string); + if (n->sec != SEC_SYNOPSIS || n->parent->tok != MDOC_Fd) + check_text(mdoc, n->line, n->pos, n->string); /* FALLTHROUGH */ case MDOC_TBL: /* FALLTHROUGH */ |