=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_html.c,v retrieving revision 1.202 retrieving revision 1.203 diff -u -r1.202 -r1.203 --- src/usr.bin/mandoc/mdoc_html.c 2019/01/18 14:36:16 1.202 +++ src/usr.bin/mandoc/mdoc_html.c 2019/03/01 10:48:58 1.203 @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_html.c,v 1.202 2019/01/18 14:36:16 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.203 2019/03/01 10:48:58 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014-2019 Ingo Schwarze @@ -529,8 +529,10 @@ html_close_paragraph(h); if ((h->oflags & HTML_TOC) == 0 || h->flags & HTML_TOCDONE || - n->sec <= SEC_SYNOPSIS) + n->sec <= SEC_SYNOPSIS) { + print_otag(h, TAG_SECTION, "c", "Sh"); break; + } h->flags |= HTML_TOCDONE; sc = 0; for (sn = n->next; sn != NULL; sn = sn->next) @@ -571,6 +573,7 @@ print_tagq(h, tsec); } print_tagq(h, t); + print_otag(h, TAG_SECTION, "c", "Sh"); break; case ROFFT_HEAD: id = html_make_id(n, 1); @@ -596,6 +599,7 @@ switch (n->type) { case ROFFT_BLOCK: html_close_paragraph(h); + print_otag(h, TAG_SECTION, "c", "Ss"); return 1; case ROFFT_HEAD: break;