=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.159 retrieving revision 1.160 diff -u -p -r1.159 -r1.160 --- mandoc/cgi.c 2018/10/01 08:06:53 1.159 +++ mandoc/cgi.c 2018/10/02 19:41:23 1.160 @@ -1,7 +1,7 @@ -/* $Id: cgi.c,v 1.159 2018/10/01 08:06:53 schwarze Exp $ */ +/* $Id: cgi.c,v 1.160 2018/10/02 19:41:23 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons - * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze + * Copyright (c) 2014, 2015, 2016, 2017, 2018 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -867,6 +867,7 @@ resp_format(const struct req *req, const char *file) memset(&conf, 0, sizeof(conf)); conf.fragment = 1; conf.style = mandoc_strdup(CSS_DIR "/mandoc.css"); + conf.toc = 1; usepath = strcmp(req->q.manpath, req->p[0]); mandoc_asprintf(&conf.man, "/%s%s%s%s%%N.%%S", scriptname, *scriptname == '\0' ? "" : "/",