Index: openacs-4/packages/wiki/tcl/wikit-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wiki/tcl/wikit-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/wiki/tcl/wikit-procs.tcl 27 Sep 2005 12:46:10 -0000 1.3 +++ openacs-4/packages/wiki/tcl/wikit-procs.tcl 25 Oct 2005 14:59:36 -0000 1.4 @@ -111,15 +111,6 @@ foreach line [split $text \n] { # Per line, classify the it and extract the main textual information. foreach {tag depth txt aux} [linetype $line] break ; # lassign -ns_log debug " -DB -------------------------------------------------------------------------------- -DB DAVE debugging /var/lib/aolserver/openacs-5-2/packages/wiki/tcl/wikit-procs.tcl -DB -------------------------------------------------------------------------------- -DB tag = '${tag}' -DB depth = '${depth}' -DB txt = '${txt}' -DB aux = '${aux}' -DB --------------------------------------------------------------------------------" # Classification tags # # UL, OL, DL = Lists (unordered/bullet, ordered/enum, @@ -526,10 +517,10 @@ x { # support embedded images if present in "images" view set iseq "" - if {[regexp {\.(gif|jpg|png)$} $text - ifmt]} { + if {[regexp -nocase {\.(gif|jpg|png)$} $text - ifmt]} { set iseq [mk::select wdb.images url $text -count 1] if {$iseq != "" && [info commands eim_$iseq] == ""} { - if {$ifmt == "jpg"} { set ifmt jpeg } + if {[string equal -nocase $ifmt "jpg"]} { set ifmt jpeg } catch { package require tkimg::$ifmt } catch { image create photo eim_$iseq -format $ifmt \ @@ -702,7 +693,7 @@ [quote $text] $html_frag(_a) } x { - if {[regexp {\.(gif|jpg|png)$} $text]} { + if {[regexp -nocase {\.(gif|jpg|png)$} $text]} { append result $html_frag(i_) $text $html_frag(tc) } else { append result \ @@ -736,6 +727,9 @@ regsub -all {<} $q {\<} q regsub -all {>} $q {\>} q regsub -all {&(#\d+;)} $q {\&\1} q + # allow
and
+ regsub -all {\<br\>} $q {
} q + regsub -all {\<br /\>} $q {
} q return $q } @@ -825,6 +819,10 @@ vs D B

vs D C

vs D E

+ vs U A

+ vs U B

+ vs U C

+ vs U E