diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-02 19:41:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-02 19:41:23 +0000 |
commit | c49583a620b528ec88e40bcecbd580aa417b1690 (patch) | |
tree | b6f10d88b408d6ad87a0f2f12ffe55288b16764f | |
parent | 1a292c4956427312d2ebea2becc01a2861e089fc (diff) | |
download | mandoc-c49583a620b528ec88e40bcecbd580aa417b1690.tar.gz |
enable the equivalent of -O toc in man.cgi(8)
-rw-r--r-- | cgi.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* $Id$ */ /* * 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' ? "" : "/", |