From b49a223081e4f93057f918cea19696f888c574be Mon Sep 17 00:00:00 2001 From: dkf Date: Wed, 1 Sep 2010 15:41:39 +0000 Subject: * tools/tcltk-man2html.tcl: Improve handling of cross-links for options between Ttk manual pages. --- ChangeLog | 3 +++ tools/tcltk-man2html.tcl | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 852b166..1a5773c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2010-09-01 Donal K. Fellows + * tools/tcltk-man2html.tcl: Improve handling of cross-links for + options between Ttk manual pages. + * doc/Tcl.n: Avoid nroff hazards when generating documentation. 2010-08-31 Andreas Kupries diff --git a/tools/tcltk-man2html.tcl b/tools/tcltk-man2html.tcl index e846a00..978aa86 100755 --- a/tools/tcltk-man2html.tcl +++ b/tools/tcltk-man2html.tcl @@ -516,7 +516,10 @@ proc long-toc {text} { proc option-toc {name class switch} { global manual if {[string match "*OPTIONS" $manual(section)]} { - if {$manual(name) ne "ttk_widget"} { + if { + $manual(name) ne "ttk_widget" + && $manual(section) ne "WIDGET-SPECIFIC OPTIONS" + } then { # link the defined option into the long table of contents set link [long-toc "$switch, $name, $class"] regsub -- "$switch, $name, $class" $link "$switch" link -- cgit v0.12