summaryrefslogtreecommitdiffstats
path: root/tbl_data.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-02 12:04:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-02 12:04:23 +0000
commitac7b63b27fa2ab9e5ea8ee979a562bc9bdf27b12 (patch)
treea1527d88358aa4771b5d32a547fd6eff8882ba03 /tbl_data.c
parent18bac1d9d98fd8bc679a1de9e741fb25e542062e (diff)
downloadmandoc-ac7b63b27fa2ab9e5ea8ee979a562bc9bdf27b12.tar.gz
Add some final bits necessary in the upcoming -Tascii tbl stuff.
Diffstat (limited to 'tbl_data.c')
-rw-r--r--tbl_data.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tbl_data.c b/tbl_data.c
index 9c59f6be..dd71d067 100644
--- a/tbl_data.c
+++ b/tbl_data.c
@@ -114,13 +114,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;