View Ticket
Ticket UUID: a21dde82ddd4adb9eac408157144dadb72af1432
Title: wapp-trim substitutes commands
Status: Closed Type: Documentation
Severity: Minor Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2019-05-05 10:07:22
Version Found In: 1.0
User Comments:
mjanssen added on 2019-03-06 09:19:39:

The documentation og `wapp-trim` states:

Command and variable substitutions only occur within "%html(...)", "%url(...)", "%qp(...)", "%string(...)", and "%unsafe(...)".

This is not true, command substitution does occur. This makes it implossible to include text which contains []'s.

The offending part of the code is the [subst -novariables] on line 80 and 91.

drh added on 2019-05-05 10:07:22:
This works correctly with Tcl8.7.  For performance reasons, substitutions
still do occur when using Tcl8.6.  The documentation has been adjusted to
make note of this fact.