=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.240 retrieving revision 1.241 diff -u -p -r1.240 -r1.241 --- mandoc/html.c 2018/10/02 12:33:37 1.240 +++ mandoc/html.c 2018/10/02 14:56:47 1.241 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.240 2018/10/02 12:33:37 schwarze Exp $ */ +/* $Id: html.c,v 1.241 2018/10/02 14:56:47 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze @@ -136,6 +136,8 @@ html_alloc(const struct manoutput *outopts) h->base_includes = outopts->includes; if (outopts->fragment) h->oflags |= HTML_FRAGMENT; + if (outopts->toc) + h->oflags |= HTML_TOC; mandoc_ohash_init(&id_unique, 4, 0);