summaryrefslogtreecommitdiffstats
path: root/tools/tcltk-man2html-utils.tcl
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2014-01-09 21:20:23 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2014-01-09 21:20:23 (GMT)
commit4aa0402e774719d5bde6de666876df9607d61f62 (patch)
treefe3896fd636563de7504eb24bce205cf9f547457 /tools/tcltk-man2html-utils.tcl
parent8bf48ad5587163c9d5efb09245c0ff6d24db142a (diff)
parent1dd57e7f83b454f114c495ecec9d81fcfa8c13f6 (diff)
downloadtcl-4aa0402e774719d5bde6de666876df9607d61f62.zip
tcl-4aa0402e774719d5bde6de666876df9607d61f62.tar.gz
tcl-4aa0402e774719d5bde6de666876df9607d61f62.tar.bz2
merge trunk
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