diff options
author | Joe Mistachkin <joe@mistachkin.com> | 2003-06-04 23:40:16 (GMT) |
---|---|---|
committer | Joe Mistachkin <joe@mistachkin.com> | 2003-06-04 23:40:16 (GMT) |
commit | d957ac0939a46479bf11a785dcf44c3bfa5d9eef (patch) | |
tree | b447523a2146b1bb2a0d417f6e500f5a6d1c47ab /tools/man2help.tcl | |
parent | 753ae00890d0e80ad9d637fea2871c566e67bb17 (diff) | |
download | tcl-d957ac0939a46479bf11a785dcf44c3bfa5d9eef.zip tcl-d957ac0939a46479bf11a785dcf44c3bfa5d9eef.tar.gz tcl-d957ac0939a46479bf11a785dcf44c3bfa5d9eef.tar.bz2 |
Fix for [Bug 748700]
Diffstat (limited to 'tools/man2help.tcl')
-rw-r--r-- | tools/man2help.tcl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/man2help.tcl b/tools/man2help.tcl index d172d1e..91fcb89 100644 --- a/tools/man2help.tcl +++ b/tools/man2help.tcl @@ -6,7 +6,7 @@ # # Copyright (c) 1996 by Sun Microsystems, Inc. # -# RCS: @(#) $Id: man2help.tcl,v 1.13 2002/08/09 00:13:54 davygrvy Exp $ +# RCS: @(#) $Id: man2help.tcl,v 1.14 2003/06/04 23:40:18 mistachkin Exp $ # # @@ -28,7 +28,13 @@ proc generateContents {basename version files} { puts $fd ":Base $basename$version.hlp" foreach package [getPackages] { foreach section [getSections $package] { + if {![info exists lastSection]} { + set lastSection {} + } + if {[string compare $lastSection $section]} { puts $fd "1 $section" + } + set lastSection $section set lastTopic {} foreach topic [getTopics $package $section] { if {[string compare $lastTopic $topic]} { |