summaryrefslogtreecommitdiffstats
path: root/tools/tcltk-man2html-utils.tcl
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2013-12-30 10:24:20 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2013-12-30 10:24:20 (GMT)
commitaf970ce4578746c01560160938a3ab93b11fd0f3 (patch)
tree9dd08e96712d0bbeb26b46b3c2ac5d1312d63be7 /tools/tcltk-man2html-utils.tcl
parent830a18d4d8114998c98667bceaa37e2f084503ff (diff)
parent87c73c7a5ce9591b246bf6123facd9577c70ffce (diff)
downloadtcl-af970ce4578746c01560160938a3ab93b11fd0f3.zip
tcl-af970ce4578746c01560160938a3ab93b11fd0f3.tar.gz
tcl-af970ce4578746c01560160938a3ab93b11fd0f3.tar.bz2
merge main working branch
Diffstat (limited to 'tools/tcltk-man2html-utils.tcl')
-rw-r--r--tools/tcltk-man2html-utils.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/tcltk-man2html-utils.tcl b/tools/tcltk-man2html-utils.tcl
index d02bcb6..8fd1245 100644
--- a/tools/tcltk-man2html-utils.tcl
+++ b/tools/tcltk-man2html-utils.tcl
@@ -142,6 +142,7 @@ proc process-text {text} {
{\(+-} "&#177;" \
{\(co} "&copy;" \
{\(em} "&#8212;" \
+ {\(en} "&#8211;" \
{\(fm} "&#8242;" \
{\(mu} "&#215;" \
{\(mi} "&#8722;" \
@@ -900,7 +901,7 @@ proc insert-cross-references {text} {
append result [string range $text 0 [expr {$off-1}]]
regexp -indices -start $off {http://[\w/.]+} $text range
set url [string range $text {*}$range]
- append result "<A HREF=\"$url\">" $url "</A>"
+ append result "<A HREF=\"[string trimright $url .]\">$url</A>"
set text [string range $text[set text ""] \
[expr {[lindex $range 1]+1}] end]
continue