version 1.2, 2010/12/29 15:21:34 |
version 1.3, 2010/12/30 09:34:07 |
|
|
*/ |
*/ |
|
|
rp = mandoc_calloc(1, sizeof(struct tbl_row)); |
rp = mandoc_calloc(1, sizeof(struct tbl_row)); |
if (tbl->last) { |
if (tbl->last_row) { |
tbl->last->next = rp; |
tbl->last_row->next = rp; |
tbl->last = rp; |
tbl->last_row = rp; |
} else |
} else |
tbl->last = tbl->first = rp; |
tbl->last_row = tbl->first_row = rp; |
|
|
cell: |
cell: |
while (isspace((unsigned char)p[*pos])) |
while (isspace((unsigned char)p[*pos])) |
|
|
|
|
if ('.' == p[*pos]) { |
if ('.' == p[*pos]) { |
tbl->part = TBL_PART_DATA; |
tbl->part = TBL_PART_DATA; |
if (NULL == tbl->first) |
if (NULL == tbl->first_row) |
TBL_MSG(tbl, MANDOCERR_TBLNOLAYOUT, ln, *pos); |
TBL_MSG(tbl, MANDOCERR_TBLNOLAYOUT, ln, *pos); |
(*pos)++; |
(*pos)++; |
return; |
return; |