diff options
author | 2017-01-11 17:39:53 +0000 | |
---|---|---|
committer | 2017-01-11 17:39:53 +0000 | |
commit | 52799799105c58995feb8514e87d7ad9229d522f (patch) | |
tree | 5f8ab2dad90ccaaa1f35b98eae49b7697e9ae86b /mandocdb.c | |
parent | 01d369a8105af24b0d6df42f974ff6b8d59dd258 (diff) | |
download | mandoc-52799799105c58995feb8514e87d7ad9229d522f.tar.gz mandoc-52799799105c58995feb8514e87d7ad9229d522f.tar.zst mandoc-52799799105c58995feb8514e87d7ad9229d522f.zip |
Do text production for .Bt, .Ex, .Rv, .Ud at the validation stage
rather than in the formatters. Use NODE_NOSRC flag for .Lb and
NODE_NOSRC and NODE_NOPRT for .St. Results in a more rigorous
syntax tree and in 135 lines less code.
This work was triggered by a question from Abhinav Upadhyay <er dot
abhinav dot upadhyay at gmail dot com> (NetBSD) on discuss@.
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.236 2017/01/10 23:36:34 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.237 2017/01/11 17:39:53 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -239,7 +239,7 @@ static const struct mdoc_handler mdocs[MDOC_MAX] = { { NULL, 0, 0 }, /* Ac */ { NULL, 0, 0 }, /* Ao */ { NULL, 0, 0 }, /* Aq */ - { NULL, TYPE_At, NODE_NOSRC }, /* At */ + { NULL, TYPE_At, 0 }, /* At */ { NULL, 0, 0 }, /* Bc */ { NULL, 0, 0 }, /* Bf */ { NULL, 0, 0 }, /* Bo */ @@ -290,7 +290,7 @@ static const struct mdoc_handler mdocs[MDOC_MAX] = { { NULL, 0, 0 }, /* Hf */ { NULL, 0, 0 }, /* Fr */ { NULL, 0, 0 }, /* Ud */ - { NULL, TYPE_Lb, 0 }, /* Lb */ + { NULL, TYPE_Lb, NODE_NOSRC }, /* Lb */ { NULL, 0, 0 }, /* Lp */ { NULL, TYPE_Lk, 0 }, /* Lk */ { NULL, TYPE_Mt, NODE_NOSRC }, /* Mt */ |