From 3da51fab3d957c487c6b04e137d0d3d391038d95 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 29 Oct 2018 21:08:12 -0700 Subject: html doc: "collapse all" shouldn't hide whole TOC. * genman.txr: show the toggle as "expand all" initially. Assign the sections of the TOC to the "tocsec" class, and then select the elements by class rather than by the dl element type. This avoids selecting the dl that wraps the entire TOC. (xpanded): New boolean variable. (toggleall): Base toggle on boolean variable rather than the state of the first section dl element. Toggle the xpanded variable. --- genman.txr | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/genman.txr b/genman.txr index 58088e8e..a99996b6 100644 --- a/genman.txr +++ b/genman.txr @@ -98,7 +98,7 @@ Content-type: text/html -@clpsall +@xpnall @ (end) @ (or) @TOC @@ -123,7 +123,7 @@ Content-type: text/html `@(if closed closedtxt opentxt)`)) @ (output :into TOC) @TOC -
+
@ (end) @ (end) @(until) @@ -178,6 +178,7 @@ This document was created by .disambiguations dl { margin-bottom: 2048px; }