Index: openacs-4/packages/xotcl-core/tcl/30-widget-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/tcl/30-widget-procs.tcl,v diff -u -r1.46 -r1.47 --- openacs-4/packages/xotcl-core/tcl/30-widget-procs.tcl 8 Jun 2010 12:09:15 -0000 1.46 +++ openacs-4/packages/xotcl-core/tcl/30-widget-procs.tcl 25 Jun 2010 13:35:13 -0000 1.47 @@ -948,14 +948,18 @@ append result "\n" } if {[info exists ::_xo_js_order]} { + set statements "" foreach file $::_xo_js_order { if {[string match "*;*" $file]} { # it is not a file, but some javascipt statements - append result "\n" + append statements $file \n } else { append result "\n" } } + if {$statements ne ""} { + append result \n "\n" + } } return $result }