Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect EV3P command output from variable substitution.
This an alternate to #917 (and #914) to fix issue #912. This uses the technique described by @dpvc in #914 (comment) with a minor tweak to limit the scope of `$__blank__`. Here is a MWE with all of the issues that have been brought up: ```perl DOCUMENT(); loadMacros('PGstandard.pl', 'MathObjects.pl'); $x = "one"; $xx = "two"; $xxx = "three"; $y = '$x'; BEGIN_TEXT $DOLLAR\{ ans_rule(1) \} $PAR $x\{"x"\} and $x\{"x"\}x and \{$y\}x END_TEXT ANS(Real(1)->cmp); ENDDOCUMENT(); ``` With the develop branch the above example will work in html, but the output on the second line will be "two and three and two". With this pull request the output on the second line will be "onex and onexx and onex". With the develop branch the above example will not work in hardcopy, but with this branch it will.
- Loading branch information