=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.19 retrieving revision 1.21 diff -u -p -r1.19 -r1.21 --- mandoc/html.c 2008/12/10 00:52:46 1.19 +++ mandoc/html.c 2008/12/10 10:43:57 1.21 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.19 2008/12/10 00:52:46 kristaps Exp $ */ +/* $Id: html.c,v 1.21 2008/12/10 10:43:57 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -72,7 +72,7 @@ static int html_begin(struct md_mbuf *, const struct md_args *, const struct tm *, const char *, const char *, - enum roffmsec, const char *); + enum roffmsec, enum roffvol); static int html_printargs(struct md_mbuf *, int, const char *, const int *, const char **, size_t *); @@ -382,15 +382,23 @@ html_aputln(struct md_mbuf *mbuf, enum ml_scope scope, static int html_begin(struct md_mbuf *mbuf, const struct md_args *args, const struct tm *tm, const char *os, - const char *name, enum roffmsec msec, const char *vol) + const char *name, enum roffmsec msec, enum roffvol vol) { struct html_pair attr[4]; - char ts[32]; + char ts[32], title[64]; int i; (void)snprintf(ts, sizeof(ts), "%s(%s)", name, roff_msecname(msec)); + (void)snprintf(ts, sizeof(ts), "%s", + name, roff_volname(vol)); + + if (vol >= ROFF_ARCH_START) { + + } + + i = 0; if ( ! html_typeput(mbuf, HTML_TYPE_4_01_STRICT, NULL)) @@ -485,7 +493,10 @@ html_begin(struct md_mbuf *mbuf, const struct md_args if ( ! html_tputln(mbuf, ML_CLOSE, i, HTML_TAG_TD)) return(0); - if ( ! html_tputln(mbuf, ML_OPEN, i, HTML_TAG_TD)) + attr[0].attr = HTML_ATTR_ALIGN; + attr[0].val = "right"; + + if ( ! html_aputln(mbuf, ML_OPEN, i, HTML_TAG_TD, 1, attr)) return(0); if ( ! ml_putstring(mbuf, ts, NULL)) return(0);