Index: openacs-4/packages/xowiki/tcl/chat-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/chat-procs.tcl,v diff -u -N -r1.27 -r1.28 --- openacs-4/packages/xowiki/tcl/chat-procs.tcl 17 May 2018 07:35:52 -0000 1.27 +++ openacs-4/packages/xowiki/tcl/chat-procs.tcl 11 Jun 2018 18:47:26 -0000 1.28 @@ -11,7 +11,7 @@ # Chat instproc render {} { # :orderby time # set result "" - # foreach child [:children] { + # foreach child [:children] { # set msg [$child msg] # set user_id [$child user_id] # set timelong [clock format [$child time]] @@ -47,7 +47,7 @@ } elseif {[string index $path end] ne "/"} { append path / } - + if {$mode eq ""} { # # The parameter "mode" was not specified, we try to guess the @@ -56,10 +56,10 @@ # The most conservative mode is # - "polling" (which requires for every connected client polling # requests), followed by - # - "scripted-streaming" (which opens and "infinitely long" HTML - # files with embedded script tags; very portable, but this + # - "scripted-streaming" (which opens and "infinitely long" HTML + # files with embedded script tags; very portable, but this # causes the loading indicator to spin), followed by - # - "streaming" (true streaming, but this requires + # - "streaming" (true streaming, but this requires # an HTTP stack supporting partial reads). # # NOTICE 1: The guessing is based on current versions of the @@ -87,7 +87,7 @@ set mode scripted-streaming if {![regexp msie|opera [string tolower [ns_set get [ns_conn headers] User-Agent]]]} { # Explorer doesn't expose partial response until request state != 4, while Opera fires - # onreadystateevent only once. For this reason, for every browser except them, we could + # onreadystateevent only once. For this reason, for every browser except them, we could # use the nice mode without the spinning load indicator. # set mode streaming @@ -148,8 +148,8 @@ -id "messages-form" \ -event "submit" \ -script [subst { - chatSendMsg(\"$send_url\",chatReceiver); - }] + chatSendMsg(\"$send_url\",chatReceiver); + }] return "\
-