-/* $Id: mdoc_html.c,v 1.126 2010/12/17 10:37:26 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.127 2010/12/17 10:43:51 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
struct tag *t;
struct htmlpair tag;
+ if (n->prev)
+ print_otag(h, TAG_BR, 0, NULL);
+
PAIR_CLASS_INIT(&tag, "utility");
print_text(h, "The");
struct htmlpair tag;
struct tag *t;
- print_otag(h, TAG_DIV, 0, NULL);
+ if (n->prev)
+ print_otag(h, TAG_BR, 0, NULL);
+
print_text(h, "The");
for (nn = n->child; nn; nn = nn->next) {
{
struct htmlpair tag;
- if (SEC_LIBRARY == n->sec && MDOC_LINE & n->flags)
- print_otag(h, TAG_DIV, 0, NULL);
+ if (SEC_LIBRARY == n->sec && MDOC_LINE & n->flags && n->prev)
+ print_otag(h, TAG_BR, 0, NULL);
+
PAIR_CLASS_INIT(&tag, "lib");
print_otag(h, TAG_SPAN, 1, &tag);
return(1);