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.65.2.17 -r1.65.2.18 --- openacs-4/packages/acs-templating/tcl/parse-procs.tcl 19 Apr 2022 11:55:07 -0000 1.65.2.17 +++ openacs-4/packages/acs-templating/tcl/parse-procs.tcl 15 Jun 2022 18:48:08 -0000 1.65.2.18 @@ -711,14 +711,17 @@ but it just performs tag substitution, but not ADP variable substitution, since this is done differently in some contextes on - the provided HTML chunk. An example is the handling of instance - attributes in xowiki. + the provided HTML chunk. An example for specialized handling is + the handling of instance attributes in xowiki. @param HTML text containing potentially ADP tags @return HTML text with substituted ADP tags } { # #ns_log notice "adp_parse_tags BEGIN [info exists ::template::parse_list]: $HTML" + if {[string trim $HTML] eq ""} { + return $HTML + } set old_parse_list [expr {[info exists ::template::parse_list] ? $::template::parse_list : ""}] set ::template::parse_list "" # @@ -734,7 +737,7 @@ #ns_log notice "adp_parse_tags parse list '[join $::template::parse_list \n]'" set HTML [eval [join $::template::parse_list \n]] } on error {errorMsg} { - ad_log warning "adp_parse_tags failed on parsing:\n$HTML" + ad_log warning "adp_parse_tags failed on parsing:\n'$HTML'" } set ::template::parse_list $old_parse_list #ns_log notice "adp_parse_tags END: $HTML"