From 169a2d82c18ba1ee663ba1da329795f3e1753e8d Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 4 Jan 2011 15:02:00 +0000 Subject: Support `T{' and `T}' data blocks. When a standalone `T{' is encountered as a line's last data cell, move into TBL_PART_CDATA mode whilst leaving the cell's designation as TBL_DATA_NONE. When new data arrives that's not a standalone `T}', append it to the cell contends. Close out and warn appropriately. --- libroff.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libroff.h') diff --git a/libroff.h b/libroff.h index 04998297..6fea1c99 100644 --- a/libroff.h +++ b/libroff.h @@ -22,7 +22,8 @@ __BEGIN_DECLS enum tbl_part { TBL_PART_OPTS, /* in options (first line) */ TBL_PART_LAYOUT, /* describing layout */ - TBL_PART_DATA /* creating data rows */ + TBL_PART_DATA, /* creating data rows */ + TBL_PART_CDATA /* continue previous row */ }; struct tbl_node { @@ -52,6 +53,7 @@ enum rofferr tbl_read(struct tbl_node *, int, const char *, int); int tbl_option(struct tbl_node *, int, const char *); int tbl_layout(struct tbl_node *, int, const char *); int tbl_data(struct tbl_node *, int, const char *); +int tbl_cdata(struct tbl_node *, int, const char *); const struct tbl_span *tbl_span(const struct tbl_node *); void tbl_end(struct tbl_node *); -- cgit