-/* $Id: mdoc_html.c,v 1.233 2015/08/30 19:00:14 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.234 2015/09/26 00:22:07 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
switch (n->type) {
case ROFFT_ELEM:
- synopsis_pre(h, n);
PAIR_CLASS_INIT(&tag, "name");
print_otag(h, TAG_B, 1, &tag);
if (NULL == n->child && meta->name)
return(1);
case ROFFT_HEAD:
print_otag(h, TAG_TD, 0, NULL);
+ PAIR_CLASS_INIT(&tag, "name");
+ print_otag(h, TAG_B, 1, &tag);
if (NULL == n->child && meta->name)
print_text(h, meta->name);
return(1);
PAIR_CLASS_INIT(&tag, "synopsis");
print_otag(h, TAG_TABLE, 1, &tag);
- for (len = 0, n = n->child; n; n = n->next)
+ for (len = 0, n = n->head->child; n; n = n->next)
if (n->type == ROFFT_TEXT)
len += html_strlen(n->string);