version 1.44, 2018/12/13 02:06:07 |
version 1.45, 2018/12/14 05:18:03 |
|
|
tbl_restart(int line, int pos, struct tbl_node *tbl) |
tbl_restart(int line, int pos, struct tbl_node *tbl) |
{ |
{ |
if (tbl->part == TBL_PART_CDATA) |
if (tbl->part == TBL_PART_CDATA) |
mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->parse, |
mandoc_msg(MANDOCERR_TBLDATA_BLK, line, pos, "T&"); |
line, pos, "T&"); |
|
|
|
tbl->part = TBL_PART_LAYOUT; |
tbl->part = TBL_PART_LAYOUT; |
tbl->line = line; |
tbl->line = line; |
Line 170 tbl_end(struct tbl_node *tbl, int still_open) |
|
Line 169 tbl_end(struct tbl_node *tbl, int still_open) |
|
struct tbl_span *sp; |
struct tbl_span *sp; |
|
|
if (still_open) |
if (still_open) |
mandoc_msg(MANDOCERR_BLK_NOEND, tbl->parse, |
mandoc_msg(MANDOCERR_BLK_NOEND, tbl->line, tbl->pos, "TS"); |
tbl->line, tbl->pos, "TS"); |
|
else if (tbl->part == TBL_PART_CDATA) |
else if (tbl->part == TBL_PART_CDATA) |
mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->parse, |
mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->line, tbl->pos, "TE"); |
tbl->line, tbl->pos, "TE"); |
|
|
|
sp = tbl->first_span; |
sp = tbl->first_span; |
while (sp != NULL && sp->first == NULL) |
while (sp != NULL && sp->first == NULL) |
sp = sp->next; |
sp = sp->next; |
if (sp == NULL) { |
if (sp == NULL) { |
mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->parse, |
mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->line, tbl->pos, NULL); |
tbl->line, tbl->pos, NULL); |
|
return 0; |
return 0; |
} |
} |
return 1; |
return 1; |