diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-02 12:04:23 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-02 12:04:23 +0000 |
commit | ac7b63b27fa2ab9e5ea8ee979a562bc9bdf27b12 (patch) | |
tree | a1527d88358aa4771b5d32a547fd6eff8882ba03 /tbl_data.c | |
parent | 18bac1d9d98fd8bc679a1de9e741fb25e542062e (diff) | |
download | mandoc-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |