summaryrefslogtreecommitdiffstats
path: root/tools/tcltk-man2html-utils.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-07-18 23:45:15 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-07-18 23:45:15 (GMT)
commit72d34422eacbba7943133639ab202f4cb9869a06 (patch)
treef6c276fef4010ddf0f97541f9e016a3c1e19d569 /tools/tcltk-man2html-utils.tcl
parent28155c8eab47a927fe919db3b537dde2ef01366b (diff)
downloadtcl-72d34422eacbba7943133639ab202f4cb9869a06.zip
tcl-72d34422eacbba7943133639ab202f4cb9869a06.tar.gz
tcl-72d34422eacbba7943133639ab202f4cb9869a06.tar.bz2
The final parts of my doc improvement project
Diffstat (limited to 'tools/tcltk-man2html-utils.tcl')
-rw-r--r--tools/tcltk-man2html-utils.tcl8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/tcltk-man2html-utils.tcl b/tools/tcltk-man2html-utils.tcl
index a7270a1..af2faa3 100644
--- a/tools/tcltk-man2html-utils.tcl
+++ b/tools/tcltk-man2html-utils.tcl
@@ -4,7 +4,7 @@
## by Tcl and Tk; they do not cope with arbitrary nroff markup.
##
## Copyright (c) 1995-1997 Roger E. Critchlow Jr
-## Copyright (c) 2004-2010 Donal K. Fellows
+## Copyright (c) 2004-2011 Donal K. Fellows
set ::manual(report-level) 1
@@ -491,7 +491,7 @@ proc output-IP-list {context code rest} {
set dl "<DL class=\"[string tolower $manual(section)]\">"
set enddl "</DL>"
if {$code eq ".IP"} {
- if {[regexp {^\[[\da-f]+\]$} $rest]} {
+ if {[regexp {^\[[\da-f]+\]|\(?[\da-f]+\)$} $rest]} {
set dl "<OL class=\"[string tolower $manual(section)]\">"
set enddl "</OL>"
} elseif {"&#8226;" eq $rest} {
@@ -518,6 +518,8 @@ proc output-IP-list {context code rest} {
man-puts "$para<DT>$rest<DD>"
} elseif {[regexp {^\[([\da-f]+)\]$} $rest -> value]} {
man-puts "$para<LI value=\"$value\">"
+ } elseif {[regexp {^\(?([\da-f]+)\)$} $rest -> value]} {
+ man-puts "$para<LI value=\"$value\">"
} elseif {"&#8226;" eq $rest} {
man-puts "$para<LI>"
} else {
@@ -624,7 +626,7 @@ proc cross-reference {ref} {
set manname $manual(name)
set mantail $manual(tail)
if {[string match "Tcl_*" $ref] || [string match "Tk_*" $ref] || [string match "Ttk_*" $ref]} {
- set lref $ref
+ regexp {^\w+} $ref lref
##
## apply a link remapping if available
##