=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.101 retrieving revision 1.104 diff -u -p -r1.101 -r1.104 --- mandoc/man_html.c 2014/09/27 09:20:03 1.101 +++ mandoc/man_html.c 2014/09/27 11:17:19 1.104 @@ -1,6 +1,6 @@ -/* $Id: man_html.c,v 1.101 2014/09/27 09:20:03 kristaps Exp $ */ +/* $Id: man_html.c,v 1.104 2014/09/27 11:17:19 kristaps Exp $ */ /* - * Copyright (c) 2008-2012 Kristaps Dzonsons + * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any @@ -142,7 +142,7 @@ print_bvspace(struct html *h, const struct man_node *n if (NULL == n->prev) return; - print_otag(h, TAG_P, 0, NULL); + print_paragraph(h); } void @@ -219,7 +219,7 @@ print_man_node(MAN_ARGS) * before printing the line's data. */ if ('\0' == *n->string) { - print_otag(h, TAG_P, 0, NULL); + print_paragraph(h); return; } @@ -309,10 +309,6 @@ man_root_pre(MAN_ARGS) PAIR_CLASS_INIT(&tag, "head"); t = print_otag(h, TAG_TABLE, 1, &tag); - PAIR_INIT(&tag, ATTR_WIDTH, "30%"); - print_otag(h, TAG_COL, 1, &tag); - print_otag(h, TAG_COL, 1, &tag); - print_otag(h, TAG_COL, 1, &tag); print_otag(h, TAG_TBODY, 0, NULL); @@ -344,9 +340,6 @@ man_root_post(MAN_ARGS) PAIR_CLASS_INIT(&tag, "foot"); t = print_otag(h, TAG_TABLE, 1, &tag); - PAIR_INIT(&tag, ATTR_WIDTH, "50%"); - print_otag(h, TAG_COL, 1, &tag); - print_otag(h, TAG_COL, 1, &tag); tt = print_otag(h, TAG_TR, 0, NULL); @@ -545,7 +538,7 @@ man_IP_pre(MAN_ARGS) static int man_HP_pre(MAN_ARGS) { - struct htmlpair tag; + struct htmlpair tag[2]; struct roffsu su; const struct man_node *np; @@ -565,8 +558,9 @@ man_HP_pre(MAN_ARGS) bufcat_su(h, "margin-left", &su); su.scale = -su.scale; bufcat_su(h, "text-indent", &su); - PAIR_STYLE_INIT(&tag, h); - print_otag(h, TAG_P, 1, &tag); + PAIR_STYLE_INIT(&tag[0], h); + PAIR_CLASS_INIT(&tag[1], "spacer"); + print_otag(h, TAG_DIV, 2, tag); return(1); }