aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-05 13:00:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-05 13:00:11 +0000
commit998b7b2d7e3596d70b5afa642e37a5a7dd4ab6a3 (patch)
tree51578554a9f529a8acbda30eff4113a89a4b8813 /tbl_html.c
parent44680479bd432376c585e7873f7bc57c239a86c6 (diff)
downloadmandoc-998b7b2d7e3596d70b5afa642e37a5a7dd4ab6a3.tar.gz
mandoc-998b7b2d7e3596d70b5afa642e37a5a7dd4ab6a3.tar.zst
mandoc-998b7b2d7e3596d70b5afa642e37a5a7dd4ab6a3.zip
Give tables an HTML class.
Diffstat (limited to 'tbl_html.c')
-rw-r--r--tbl_html.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tbl_html.c b/tbl_html.c
index 2abbf4ca..cda22b0c 100644
--- a/tbl_html.c
+++ b/tbl_html.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_html.c,v 1.2 2011/01/04 15:02:00 kristaps Exp $ */
+/* $Id: tbl_html.c,v 1.3 2011/01/05 13:00:11 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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;