aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-10-02 19:41:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-10-02 19:41:23 +0000
commit5e258663903335b6f86880b026108c38a3f95c3c (patch)
tree521698ddc0a81cd502771618e84bf88ccffa61c2 /cgi.c
parentcc61d00ed522f99c9f1a34fcc6add2d202942885 (diff)
downloadmandoc-5e258663903335b6f86880b026108c38a3f95c3c.tar.gz
mandoc-5e258663903335b6f86880b026108c38a3f95c3c.tar.zst
mandoc-5e258663903335b6f86880b026108c38a3f95c3c.zip
enable the equivalent of -O toc in man.cgi(8)
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cgi.c b/cgi.c
index 3560f160..afb38f1d 100644
--- a/cgi.c
+++ b/cgi.c
@@ -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 <kristaps@bsd.lv>
- * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@usta.de>
+ * Copyright (c) 2014, 2015, 2016, 2017, 2018 Ingo Schwarze <schwarze@usta.de>
*
* 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' ? "" : "/",