=================================================================== RCS file: /cvs/mandoc/tbl_data.c,v retrieving revision 1.8 retrieving revision 1.10 diff -u -p -r1.8 -r1.10 --- mandoc/tbl_data.c 2011/01/02 10:10:57 1.8 +++ mandoc/tbl_data.c 2011/01/04 12:06:21 1.10 @@ -1,4 +1,4 @@ -/* $Id: tbl_data.c,v 1.8 2011/01/02 10:10:57 kristaps Exp $ */ +/* $Id: tbl_data.c,v 1.10 2011/01/04 12:06:21 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -82,6 +82,11 @@ data(struct tbl_node *tbl, struct tbl_span *dp, dat->pos = TBL_DATA_NDHORIZ; else dat->pos = TBL_DATA_DATA; + + if (TBL_CELL_HORIZ == dat->layout->pos || + TBL_CELL_DHORIZ == dat->layout->pos) + if (TBL_DATA_DATA == dat->pos && '\0' != *dat->string) + TBL_MSG(tbl, MANDOCERR_TBLIGNDATA, ln, sv); } int @@ -114,13 +119,17 @@ tbl_data(struct tbl_node *tbl, int ln, const char *p) rp = tbl->first_row; dp = mandoc_calloc(1, sizeof(struct tbl_span)); + dp->tbl = &tbl->opts; dp->layout = rp; + dp->head = tbl->first_head; if (tbl->last_span) { tbl->last_span->next = dp; tbl->last_span = dp; - } else + } else { tbl->last_span = tbl->first_span = dp; + dp->flags |= TBL_SPAN_FIRST; + } if ( ! strcmp(p, "_")) { dp->pos = TBL_SPAN_HORIZ;