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 | 298dd329122e8243c3417d70103c620ab2b8f858 (patch) | |
tree | 760094d07fcc3405dd2547494c586f2fcf575472 /tbl_data.c | |
parent | 56cfcaa84d0b04041aeeec950bddb179297ebd2d (diff) | |
download | mandoc-298dd329122e8243c3417d70103c620ab2b8f858.tar.gz mandoc-298dd329122e8243c3417d70103c620ab2b8f858.tar.zst mandoc-298dd329122e8243c3417d70103c620ab2b8f858.zip |
Add some final bits necessary in the upcoming -Tascii tbl stuff.
Diffstat (limited to 'tbl_data.c')
-rw-r--r-- | tbl_data.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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.9 2011/01/02 12:04:23 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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; |