diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-13 14:30:13 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-13 14:30:13 +0000 |
commit | 85474e8c235db9ab473084a381b03aeb8422a12d (patch) | |
tree | 0302ed33798c6aa009545379a6a14cddbc71c4b2 /html.h | |
parent | b9b8f8cdfe53fa8d9f13f22beb2ec50f83a231d8 (diff) | |
download | mandoc-85474e8c235db9ab473084a381b03aeb8422a12d.tar.gz |
Change how -Thtml behaves with tables: use multiple rows, with widths
set by COL, until an external macro is encountered. At this point in
time, close out the table and process the macro. When the first table
row is again re-encountered, re-start the table. This requires a bit of
tracking added to "struct html", but the change is very small and
follows the logic of meta-fonts. This all follows a bug-report by
joerg@.
Diffstat (limited to 'html.h')
-rw-r--r-- | html.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -67,6 +67,7 @@ enum htmlattr { ATTR_ID, ATTR_SUMMARY, ATTR_ALIGN, + ATTR_COLSPAN, ATTR_MAX }; @@ -117,6 +118,7 @@ struct html { #define HTML_NONOSPACE (1 << 4) struct tagq tags; /* stack of open tags */ struct rofftbl tbl; /* current table */ + struct tag *tblt; /* current open table scope */ void *symtab; /* character-escapes */ char *base_man; /* base for manpage href */ char *base_includes; /* base for include href */ @@ -136,6 +138,7 @@ struct tag *print_otag(struct html *, enum htmltag, void print_tagq(struct html *, const struct tag *); void print_stagq(struct html *, const struct tag *); void print_text(struct html *, const char *); +void print_tblclose(struct html *); void print_tbl(struct html *, const struct tbl_span *); void bufcat_su(struct html *, const char *, |