summaryrefslogtreecommitdiffstats
path: root/tools/tcltk-man2html-utils.tcl
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2015-07-17 21:22:22 (GMT)
committerdgp@users.sourceforge.net <dgp>2015-07-17 21:22:22 (GMT)
commitdee9a9cbe77ea21d498f9c6c3885df0a93c8da50 (patch)
treeeb303b04e47fe05468dc5620171a0ee2c8453095 /tools/tcltk-man2html-utils.tcl
parent3b5dff82b3bea4153a4034c95ebdc7af76076428 (diff)
parent77985b9936c999f8cbcb0f87825fedb45afada9a (diff)
downloadtcl-dee9a9cbe77ea21d498f9c6c3885df0a93c8da50.zip
tcl-dee9a9cbe77ea21d498f9c6c3885df0a93c8da50.tar.gz
tcl-dee9a9cbe77ea21d498f9c6c3885df0a93c8da50.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