diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:59:17 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:59:17 +0000 |
commit | c80b8c034f0e42db26a04a17527b0b7e3dc6512b (patch) | |
tree | 7a146488e062534e63eb8c284052e30e2d869cd6 /mdoc.c | |
parent | 625153bf5457ded8b8946e7f0f831993b94dd863 (diff) | |
download | mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.tar.gz mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.tar.zst mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.zip |
Add -man support for tables. Like -mdoc, this consists of an
external-facing function man_addspan() (this required shuffling around
the descope routine) and hooks elsewhere.
Also fixed mdoc.c's post-validation of tables.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.175 2011/01/01 12:18:37 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.176 2011/01/01 12:59:17 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -391,6 +391,8 @@ node_append(struct mdoc *mdoc, struct mdoc_node *p) mdoc->last = p; switch (p->type) { + case (MDOC_TBL): + /* FALLTHROUGH */ case (MDOC_TEXT): if ( ! mdoc_valid_post(mdoc)) return(0); |