=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_html.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/mandoc/mdoc_html.c 2010/05/08 02:10:09 1.12 --- src/usr.bin/mandoc/mdoc_html.c 2010/05/14 14:47:44 1.13 *************** *** 1,4 **** ! /* $Id: mdoc_html.c,v 1.12 2010/05/08 02:10:09 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * --- 1,4 ---- ! /* $Id: mdoc_html.c,v 1.13 2010/05/14 14:47:44 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * *************** *** 726,732 **** { struct htmlpair tag; ! if (SEC_SYNOPSIS == n->sec && n->prev) { bufcat_style(h, "clear", "both"); PAIR_STYLE_INIT(&tag, h); print_otag(h, TAG_BR, 1, &tag); --- 726,733 ---- { struct htmlpair tag; ! if (SEC_SYNOPSIS == n->sec && ! n->prev && MDOC_LINE & n->flags) { bufcat_style(h, "clear", "both"); PAIR_STYLE_INIT(&tag, h); print_otag(h, TAG_BR, 1, &tag); *************** *** 1554,1560 **** struct htmlpair tag; struct roffsu su; ! if (SEC_SYNOPSIS == n->sec) { if (n->next && MDOC_Fd != n->next->tok) { SCALE_VS_INIT(&su, 1); bufcat_su(h, "margin-bottom", &su); --- 1555,1561 ---- struct htmlpair tag; struct roffsu su; ! if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) { if (n->next && MDOC_Fd != n->next->tok) { SCALE_VS_INIT(&su, 1); bufcat_su(h, "margin-bottom", &su); *************** *** 1602,1608 **** { struct htmlpair tag; ! if (SEC_SYNOPSIS == n->sec) print_otag(h, TAG_DIV, 0, NULL); PAIR_CLASS_INIT(&tag, "ftype"); --- 1603,1609 ---- { struct htmlpair tag; ! if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) print_otag(h, TAG_DIV, 0, NULL); PAIR_CLASS_INIT(&tag, "ftype"); *************** *** 1623,1629 **** int sz, i; struct roffsu su; ! if (SEC_SYNOPSIS == n->sec) { SCALE_HS_INIT(&su, INDENT); bufcat_su(h, "margin-left", &su); su.scale = -su.scale; --- 1624,1630 ---- int sz, i; struct roffsu su; ! if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) { SCALE_HS_INIT(&su, INDENT); bufcat_su(h, "margin-left", &su); su.scale = -su.scale; *************** *** 1864,1870 **** int i; struct roffsu su; ! if (SEC_SYNOPSIS == n->sec) { if (n->next && MDOC_In != n->next->tok) { SCALE_VS_INIT(&su, 1); bufcat_su(h, "margin-bottom", &su); --- 1865,1871 ---- int i; struct roffsu su; ! if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) { if (n->next && MDOC_In != n->next->tok) { SCALE_VS_INIT(&su, 1); bufcat_su(h, "margin-bottom", &su); *************** *** 2169,2175 **** { struct htmlpair tag; ! if (SEC_SYNOPSIS == n->sec) print_otag(h, TAG_DIV, 0, NULL); PAIR_CLASS_INIT(&tag, "lib"); print_otag(h, TAG_SPAN, 1, &tag); --- 2170,2176 ---- { struct htmlpair tag; ! if (SEC_LIBRARY == n->sec && MDOC_LINE & n->flags) print_otag(h, TAG_DIV, 0, NULL); PAIR_CLASS_INIT(&tag, "lib"); print_otag(h, TAG_SPAN, 1, &tag);