version 1.8, 2011/01/02 10:10:57 |
version 1.10, 2011/01/04 12:06:21 |
Line 82 data(struct tbl_node *tbl, struct tbl_span *dp, |
|
Line 82 data(struct tbl_node *tbl, struct tbl_span *dp, |
|
dat->pos = TBL_DATA_NDHORIZ; |
dat->pos = TBL_DATA_NDHORIZ; |
else |
else |
dat->pos = TBL_DATA_DATA; |
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 |
int |
Line 114 tbl_data(struct tbl_node *tbl, int ln, const char *p) |
|
Line 119 tbl_data(struct tbl_node *tbl, int ln, const char *p) |
|
rp = tbl->first_row; |
rp = tbl->first_row; |
|
|
dp = mandoc_calloc(1, sizeof(struct tbl_span)); |
dp = mandoc_calloc(1, sizeof(struct tbl_span)); |
|
dp->tbl = &tbl->opts; |
dp->layout = rp; |
dp->layout = rp; |
|
dp->head = tbl->first_head; |
|
|
if (tbl->last_span) { |
if (tbl->last_span) { |
tbl->last_span->next = dp; |
tbl->last_span->next = dp; |
tbl->last_span = dp; |
tbl->last_span = dp; |
} else |
} else { |
tbl->last_span = tbl->first_span = dp; |
tbl->last_span = tbl->first_span = dp; |
|
dp->flags |= TBL_SPAN_FIRST; |
|
} |
|
|
if ( ! strcmp(p, "_")) { |
if ( ! strcmp(p, "_")) { |
dp->pos = TBL_SPAN_HORIZ; |
dp->pos = TBL_SPAN_HORIZ; |