diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-11 14:12:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-11 14:12:01 +0000 |
commit | fa73a21290e351913eadd2b70b4471fd30829483 (patch) | |
tree | cb524df5813e538c91ca612c4110c9e4291a7eb9 /tbl_data.c | |
parent | c68f7a36a22b06ab0bb6afcd32d531d893abbc57 (diff) | |
download | mandoc-fa73a21290e351913eadd2b70b4471fd30829483.tar.gz |
Add support for "^" vertical spanners. Unlike GNU tbl, raise
error-class messages when data is being ignored by specifying it in "^"
cells (either as-is or in blocks).
Also note again that horizontal spanners aren't really supported...
Diffstat (limited to 'tbl_data.c')
-rw-r--r-- | tbl_data.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -122,7 +122,8 @@ data(struct tbl_node *tbl, struct tbl_span *dp, dat->pos = TBL_DATA_DATA; if (TBL_CELL_HORIZ == dat->layout->pos || - TBL_CELL_DHORIZ == dat->layout->pos) + TBL_CELL_DHORIZ == dat->layout->pos || + TBL_CELL_DOWN == dat->layout->pos) if (TBL_DATA_DATA == dat->pos && '\0' != *dat->string) TBL_MSG(tbl, MANDOCERR_TBLIGNDATA, ln, sv); @@ -165,6 +166,9 @@ tbl_cdata(struct tbl_node *tbl, int ln, const char *p) } else dat->string = mandoc_strdup(p); + if (TBL_CELL_DOWN == dat->layout->pos) + TBL_MSG(tbl, MANDOCERR_TBLIGNDATA, ln, pos); + return(0); } |