stas 02/05/12 05:01:56
Modified: tmpl/custom/html page_toc
Log:
- always display TOC, since it breaks links checking for #anchor, when
there is only one item.
- the current logic was wrong anyway because it was checked whether there
is only one top level header, and will not print TOC even if there were 20
=head2 headers
Revision Changes Path
1.9 +1 -1 modperl-docs/tmpl/custom/html/page_toc
Index: page_toc
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/page_toc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- page_toc 3 Apr 2002 05:18:27 -0000 1.8
+++ page_toc 12 May 2002 12:01:56 -0000 1.9
@@ -5,7 +5,7 @@
# toc - an array ref with keys: link, title, abstract, subs
# (subs is optional and includes a similar array)
-%]
-[%- IF toc.size && toc.size > 1 -%]
+[%- IF toc.size -%]
<h3>Table of Contents</h3>
<div class="toc">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]