diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-02 14:56:47 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-02 14:56:47 +0000 |
commit | 1a292c4956427312d2ebea2becc01a2861e089fc (patch) | |
tree | d767b2200fd77455d1c7f9c1ef1ec6648d1750b0 /html.h | |
parent | 9e238facdedce54e6eeccb030929d4b3893df873 (diff) | |
download | mandoc-1a292c4956427312d2ebea2becc01a2861e089fc.tar.gz |
Add an option -T html -O toc to add a brief table of contents near
the top of HTML pages containing at least two non-standard sections.
Suggested by Adam Kalisz and discussed with kristaps@ during EuroBSDCon 2018.
Diffstat (limited to 'html.h')
-rw-r--r-- | html.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -93,6 +93,7 @@ struct html { #define HTML_SPLIT (1 << 8) /* break line before .An */ #define HTML_NONEWLINE (1 << 9) /* No line break in nofill mode. */ #define HTML_BUFFER (1 << 10) /* Collect a word to see if it fits. */ +#define HTML_TOCDONE (1 << 11) /* The TOC was already written. */ size_t indent; /* current output indentation level */ int noindent; /* indent disabled by <pre> */ size_t col; /* current output byte position */ @@ -110,6 +111,7 @@ struct html { enum htmlfont metac; /* current font mode */ int oflags; /* output options */ #define HTML_FRAGMENT (1 << 0) /* don't emit HTML/HEAD/BODY */ +#define HTML_TOC (1 << 1) /* emit a table of contents */ }; |