Index: openacs-4/packages/acs-templating/tcl/parse-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/parse-procs.tcl,v diff -u -r1.29 -r1.30 --- openacs-4/packages/acs-templating/tcl/parse-procs.tcl 24 Mar 2004 10:34:30 -0000 1.29 +++ openacs-4/packages/acs-templating/tcl/parse-procs.tcl 20 Apr 2004 21:13:08 -0000 1.30 @@ -368,11 +368,20 @@ set substitution "%" } else { # An embedded variable - + + # Remove any noquote instruction + set quote_p 1 + if { [regsub {;noquote} $percent_match {} substitution] } { + # We removed a noquote instruction so don't quote + set quote_p 0 + } + # Convert syntax to TCL syntax: # It's either an array variable or a tcl variable # array variables - regsub {^%([a-zA-Z0-9_]+)\.([a-zA-Z0-9_]+)%$} $percent_match {$\1(\2)} substitution + # TODO: ad_quotehtml + # TODO: lang::util::localize + regsub {^%([a-zA-Z0-9_]+)\.([a-zA-Z0-9_]+)%$} $substitution {$\1(\2)} substitution # ordinary variables regsub {^%([a-zA-Z0-9_:]+)%$} $substitution {$\1} substitution