From e42168f3c9168eabd49050d6133c5a77f19985c7 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 1 Jan 2011 22:27:08 +0000 Subject: Add a warning if a data cell has no layout. Also make -Ttree show this with a little star next to the entry (yeah, this is mostly for testing). --- tbl_data.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tbl_data.c') diff --git a/tbl_data.c b/tbl_data.c index 56b13c99..708a9ea6 100644 --- a/tbl_data.c +++ b/tbl_data.c @@ -52,6 +52,9 @@ data(struct tbl *tbl, struct tbl_span *dp, dat = mandoc_calloc(1, sizeof(struct tbl_dat)); dat->layout = cp; + if (NULL == dat->layout) + TBL_MSG(tbl, MANDOCERR_TBLEXTRADAT, ln, *pos); + if (dp->last) { dp->last->next = dat; dp->last = dat; -- cgit