simon-svn: halibut: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sat Aug 2 15:46:53 BST 2014
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 10212
Date: 2014-08-02 15:46:52 +0100 (Sat, 02 Aug 2014)
Log message (13 lines):
Permit tables of contents in HTML single-file mode.
Patch due to J. Lewis Muir, who points out that the HTML backend's
current policy of _always_ disabling the TOC in single-file mode is
excessively harsh: in a long or formal enough document, you might
still want a TOC to make navigating around within the file easier,
even if it's not necessary to use it to get between multiple files.
So this change removes the unconditional prohibition against TOCs in
single-file documents, but they're still disabled by default, because
a single file counts as a leaf file and the existing default settings
disable TOCs in leaf files anyway. So if you do want a TOC in a single
file, you can reconfigure 'html-leaf-contains-contents' to true.
Modified files:
U halibut/bk_html.c
Links:
http://svn.tartarus.org/sgt/?rev=10212&view=rev
http://svn.tartarus.org/sgt/halibut/bk_html.c?rev=10212&r1=10211&r2=10212
More information about the tartarus-commits
mailing list