diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-05 13:00:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-05 13:00:11 +0000 |
commit | f824bd1b5c997090ea6dee10eb77ccf96c57fc03 (patch) | |
tree | 1c1c9a396171a0c3602779cebc05681d5078faca /tbl_html.c | |
parent | 265ff1bc6958140d54a6320d854e1487e996f432 (diff) | |
download | mandoc-f824bd1b5c997090ea6dee10eb77ccf96c57fc03.tar.gz |
Give tables an HTML class.
Diffstat (limited to 'tbl_html.c')
-rw-r--r-- | tbl_html.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -32,7 +32,8 @@ print_tbl(struct html *h, const struct tbl_span *sp) { const struct tbl_head *hp; const struct tbl_dat *dp; - struct tag *tt; + struct tag *tt; + struct htmlpair tag; switch (sp->pos) { case (TBL_SPAN_HORIZ): @@ -48,7 +49,9 @@ print_tbl(struct html *h, const struct tbl_span *sp) h->flags |= HTML_NONOSPACE; h->flags |= HTML_NOSPACE; - print_otag(h, TAG_TABLE, 0, NULL); + PAIR_CLASS_INIT(&tag, "tbl"); + + print_otag(h, TAG_TABLE, 1, &tag); print_otag(h, TAG_TR, 0, NULL); dp = sp->first; |