Index: openacs-4/packages/acs-templating/tcl/date-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/date-procs.tcl,v diff -u -r1.42 -r1.42.2.1 --- openacs-4/packages/acs-templating/tcl/date-procs.tcl 11 Dec 2007 12:08:01 -0000 1.42 +++ openacs-4/packages/acs-templating/tcl/date-procs.tcl 21 Oct 2008 08:30:39 -0000 1.42.2.1 @@ -1014,7 +1014,6 @@ # the user to enter a freeform format append output "\n" - append output "
" - lappend tokens $token # Output the widget set fragment_def $template::util::date::fragment_widgets([string toupper $token]) set fragment [lindex $fragment_def 1] if {[exists_and_not_null id_attr_name]} { - set attributes(id) "${id_attr_name}.${fragment}" + set attributes(id) "${id_attr_name}.${fragment}" } - append tbody_content [template::widget::[lindex $fragment_def 0] \ + set widget [template::widget::[lindex $fragment_def 0] \ element \ $fragment \ [lindex $fragment_def 2] \ @@ -1069,34 +1065,21 @@ $element(mode) \ [array get attributes]] + if { [info exists element(help)] } { + append output "" + } else { + append output $widget + } + # Output the separator if {$sep eq " "} { - append tbody_content " " + append output " " } else { - append tbody_content "$sep" + append output "$sep" } - append tbody_content " | \n" } - append tbody_content "
\n" - } - append tfoot_content " |