=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.14 retrieving revision 1.16 diff -u -p -r1.14 -r1.16 --- mandoc/html.c 2008/12/07 21:30:49 1.14 +++ mandoc/html.c 2008/12/08 16:29:57 1.16 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.14 2008/12/07 21:30:49 kristaps Exp $ */ +/* $Id: html.c,v 1.16 2008/12/08 16:29:57 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -75,7 +75,7 @@ static int html_begin(struct md_mbuf *, const struct md_args *, const struct tm *, const char *, const char *, - const char *, const char *); + enum roffmsec, const char *); static int html_printargs(struct md_mbuf *, int, const char *, const int *, const char **, size_t *); @@ -141,7 +141,6 @@ html_It_headtagname(struct md_mbuf *mbuf, struct htmlq switch (n->argc[i]) { case (ROFF_Ohang): return(ml_nputs(mbuf, "div", 3, res)); - case (ROFF_Tag): /* FALLTHROUGH */ case (ROFF_Column): @@ -151,8 +150,7 @@ html_It_headtagname(struct md_mbuf *mbuf, struct htmlq } } - abort(); - /* NOTREACHED */ + return(0); } @@ -202,10 +200,7 @@ html_It_bodytagname(struct md_mbuf *mbuf, struct htmlq } assert(i != ROFF_MAXLINEARG); - abort(); - /* NOTREACHED */ - - return(1); + return(0); } @@ -247,8 +242,7 @@ html_Bl_bodytagname(struct md_mbuf *mbuf, struct htmlq } assert(i != ROFF_MAXLINEARG); - abort(); - /* NOTREACHED */ + return(0); } @@ -298,8 +292,7 @@ html_It_blocktagname(struct md_mbuf *mbuf, struct html } assert(i != ROFF_MAXLINEARG); - abort(); - /* NOTREACHED */ + return(0); } @@ -361,7 +354,7 @@ out: static int html_begin(struct md_mbuf *mbuf, const struct md_args *args, const struct tm *tm, const char *os, - const char *title, const char *section, + const char *title, enum roffmsec section, const char *vol) { const char *preamble, *css, *trail; @@ -389,7 +382,7 @@ html_begin(struct md_mbuf *mbuf, const struct md_args res = 0; (void)snprintf(buf, sizeof(buf) - 1, - preamble, title, section); + preamble, title, ml_section(section)); if ( ! ml_puts(mbuf, buf, &res)) return(0);