summaryrefslogtreecommitdiffstats
path: root/tbl_data.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-04 12:06:21 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-04 12:06:21 +0000
commitb6b883b7b599dbe343a853c4f09d0d994f8ce23e (patch)
tree7bbdea5d7915ac7663b656e97a65eafaf0f20a2f /tbl_data.c
parent241958eedf37464b69731b4b8417dda97c3be391 (diff)
downloadmandoc-b6b883b7b599dbe343a853c4f09d0d994f8ce23e.tar.gz
Fix to make horizontal spanners in the layout be properly printed.
mandoc also now warns (so does tbl(1)) if a horizontal spanner is specified along with data. While here, fix up some documentation and uncomment the tbl reference.
Diffstat (limited to 'tbl_data.c')
-rw-r--r--tbl_data.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tbl_data.c b/tbl_data.c
index dd71d067..2090764f 100644
--- a/tbl_data.c
+++ b/tbl_data.c
@@ -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