Index: openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl,v diff -u -r1.56.2.2 -r1.56.2.3 --- openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl 2 Mar 2007 19:06:07 -0000 1.56.2.2 +++ openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl 6 Mar 2007 07:45:25 -0000 1.56.2.3 @@ -863,7 +863,6 @@ # Check that any acquire and get_property attributes are supported by their element's datatype # These are needed at submission and fill-the-form-with-db-values time - foreach element_name $af_element_names($form_name) { if { [llength $element_name] == 1 } { if { [info exists af_from_sql(${form_name}__$element_name)] } { @@ -991,7 +990,7 @@ return -code error "Couldn't get the next value from sequence: $errmsg\"" } set values(__new_p) 1 - + if { [info exists new_request] } { ad_page_contract_eval uplevel #$level $new_request # LARS: Set form values based on local vars in the new_request block @@ -1088,7 +1087,6 @@ lappend args [list $element_name [uplevel #$level [list set $element_name]]] } } - # This is serious abuse of ad_return_exception_template, but hell, I wrote it so I'm entitled ... ad_return_exception_template -status 200 -params $args $confirm_template Index: openacs-4/packages/acs-tcl/tcl/table-display-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/Attic/table-display-procs.tcl,v diff -u -r1.11 -r1.11.12.1 --- openacs-4/packages/acs-tcl/tcl/table-display-procs.tcl 28 Aug 2003 09:41:43 -0000 1.11 +++ openacs-4/packages/acs-tcl/tcl/table-display-procs.tcl 6 Mar 2007 07:45:25 -0000 1.11.12.1 @@ -601,8 +601,8 @@ if {![empty_string_p $item]} { append html "

Editing $item

" append html "
" - append html "" - append html "" + append html "" + append html "" append html "[export_form_vars item_group item]" if {![empty_string_p $return_url]} { append html "[export_form_vars return_url]" @@ -622,13 +622,13 @@ if {![empty_string_p $item]} { set item_original $item append html "[export_form_vars item_original]" - append html "" + append html "" } else { - append html "" + append html "" } append html "" - append html "" + append html "" if {![empty_string_p $item]} { set item_original item append html "[export_form_vars item_original]" @@ -660,7 +660,7 @@ append html "" foreach opt $sel_list { - append options "" + append options "" } for {set i 0} { $i < $max_columns} {incr i} { if {$i < $n_sel_columns} { @@ -726,8 +726,8 @@ if {![empty_string_p $item]} { append html "

Editing $item

" append html "" - append html "" - append html "" + append html "" + append html "" append html "[export_form_vars item_group item]" if {![empty_string_p $return_url]} { append html "[export_form_vars return_url]" @@ -966,7 +966,7 @@ } set item_original $item append html "[export_form_vars item_group item item_original]\n" - append html "" + append html "" } proc_doc ad_dimensional_settings {define current} { Index: openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl,v diff -u -r1.91.2.1 -r1.91.2.2 --- openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 14 Dec 2006 13:55:10 -0000 1.91.2.1 +++ openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 6 Mar 2007 07:45:25 -0000 1.91.2.2 @@ -823,7 +823,7 @@ set export_string [join $export_list "&"] } else { for { set i 0 } { $i < $export_size } { incr i } { - append export_string "\n" + append export_string "\n" } } @@ -997,7 +997,7 @@ set export_list [list] foreach varname [array names export] { lappend export_list "" + value=\"[ad_quotehtml $export($varname)]\" >" } return [join $export_list \n] } @@ -1043,15 +1043,15 @@ switch $type { multiple { foreach item $value { - append hidden "\n" + append hidden "\n" } } default { - append hidden "\n" + append hidden "\n" } } if { $sign_p } { - append hidden "\n" + append hidden "\n" } } } @@ -1074,7 +1074,7 @@ for {set i 0} {$i<[ns_set size $the_form]} {incr i} { set varname [ns_set key $the_form $i] set varvalue [ns_set value $the_form $i] - append hidden "\n" + append hidden "\n" } } return $hidden @@ -1119,7 +1119,7 @@ if {$format == "url"} { return [join $return_list "&"] } else { - return "\n " + return "\n " } } Index: openacs-4/packages/acs-tcl/tcl/widgets-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/widgets-procs.tcl,v diff -u -r1.7 -r1.7.10.1 --- openacs-4/packages/acs-tcl/tcl/widgets-procs.tcl 24 Feb 2004 11:20:01 -0000 1.7 +++ openacs-4/packages/acs-tcl/tcl/widgets-procs.tcl 6 Mar 2007 07:45:25 -0000 1.7.10.1 @@ -235,15 +235,15 @@ } } if_no_rows { if {![empty_string_p $default]} { - return "\n" + return "\n" } else { return {} } } } if { $count == 1 || ($dbcount == 1 && $hidden_if_one_db) } { - return "$item\n" + return "$item\n" } elseif {!$count && !$dbcount && $blank_if_no_db} { return {} } else { 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.37.2.4 -r1.37.2.5 --- openacs-4/packages/acs-templating/tcl/date-procs.tcl 3 Mar 2007 20:35:18 -0000 1.37.2.4 +++ openacs-4/packages/acs-templating/tcl/date-procs.tcl 6 Mar 2007 07:41:10 -0000 1.37.2.5 @@ -887,7 +887,7 @@ append output " $attribute_name=\"$attributes($attribute_name)\"" } } - append output "/>\n" + append output ">\n" return $output } else { # Use a default range for others @@ -1010,7 +1010,7 @@ # Just remember the format for now - in the future, allow # the user to enter a freeform format append output "\n" + append output "value=\"$element(format)\" >\n" append output "
Name:
Name:
\n" # Prepare the value to set defaults on the form @@ -1354,8 +1354,8 @@ } if { [string equal $element(mode) "edit"] } { - append output "" - append output "" + append output "" + append output "" } else { append output $textdate append output "" Index: openacs-4/packages/acs-templating/tcl/form-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/form-procs.tcl,v diff -u -r1.32.6.3 -r1.32.6.4 --- openacs-4/packages/acs-templating/tcl/form-procs.tcl 3 Mar 2007 00:19:23 -0000 1.32.6.3 +++ openacs-4/packages/acs-templating/tcl/form-procs.tcl 6 Mar 2007 07:42:08 -0000 1.32.6.4 @@ -839,7 +839,7 @@ append export_data " " + value=\"[template::util::quote_html $value]\" >" } return $export_data Index: openacs-4/packages/acs-templating/tcl/richtext-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/richtext-procs.tcl,v diff -u -r1.25.2.1 -r1.25.2.2 --- openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 12 Jan 2007 18:58:42 -0000 1.25.2.1 +++ openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 6 Mar 2007 07:42:08 -0000 1.25.2.2 @@ -264,7 +264,7 @@ append output [textarea_internal "$element(id)" attributes $contents] if { $htmlarea_p } { - append output "" + append output "" } else { append output "
Format: [menu $element(id).format [template::util::richtext::format_options] $format attributes]" } @@ -436,9 +436,9 @@ # some others) append output "\n" - set output "" + set output "" } elseif {$richtextEditor eq "xinha"} { - append output "\n" + append output "\n" append output "\n" # we have a xinha richtext widget, specified by "options {editor xinha}" Index: openacs-4/packages/acs-templating/tcl/spellcheck-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/spellcheck-procs.tcl,v diff -u -r1.16 -r1.16.2.1 --- openacs-4/packages/acs-templating/tcl/spellcheck-procs.tcl 29 Jul 2006 23:10:33 -0000 1.16 +++ openacs-4/packages/acs-templating/tcl/spellcheck-procs.tcl 6 Mar 2007 07:42:08 -0000 1.16.2.1 @@ -113,7 +113,7 @@ # form data by richtext validation DAVEB template::element::set_properties $element(form_id) $element(id) -datatype text append formtext_to_display " -" +" } # This is needed in order to display the form text noquoted in the "show errors" page ... @@ -295,7 +295,7 @@ set wordlen [string length $errword] if { [string equal "miss" $errtype] } { - regsub "\#$errnum\#" $formtext "" formtext + regsub "\#$errnum\#" $formtext "" formtext } elseif { [string equal "nearmiss" $errtype] } { regsub -all ", " $erroptions "," erroptions set options [split $erroptions ","] @@ -323,7 +323,7 @@ regsub -all {} $formtext_to_display "" formtext_to_display regsub -all {} $formtext_to_display "" formtext_to_display - append formtext_to_display "" + append formtext_to_display "" #### Index: openacs-4/packages/acs-templating/tcl/widget-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/widget-procs.tcl,v diff -u -r1.42.2.3 -r1.42.2.4 --- openacs-4/packages/acs-templating/tcl/widget-procs.tcl 27 Feb 2007 08:51:52 -0000 1.42.2.3 +++ openacs-4/packages/acs-templating/tcl/widget-procs.tcl 6 Mar 2007 07:42:08 -0000 1.42.2.4 @@ -72,11 +72,11 @@ } else { - set output "" - append output "" + set output "" + append output "" if { ![info exists element(confirmed_p)] } { - append output "" + append output "" } append output [select $element_reference $tag_attributes] @@ -236,7 +236,7 @@ # include an extra hidden element to indicate that the # value is being selected as opposed to entered - set output "\n" + set output "\n" append output [select element $tag_attributes] } @@ -410,7 +410,7 @@ append output " maxlength=\"$element(maxlength)\"" } - append output " />" + append output " >" } return $output @@ -654,7 +654,7 @@ append output " selected=\"selected\"" } - append output ">$label
\n" + append output ">$label
\n" } } default {