Bug: "sub putBackVerbatim" is broken
Subroutine putBackVerbatim does not correctly convert greater-than symbols; it is a cut-n-paste error from the previous line. Causes havok when doing
BNF for other angle-intensive stuff.
Test case
Look at the generated html for this:
<sample> the > is not converted to &gt;, but it left bare.
Environment
--
BryanEwbank - 09 Mar 2004
Follow up
Patch to fix attached (view raw to copy and paste correctly)
Index: TWiki.pm
===================================================================
RCS file: /cvsroot/twiki/twiki/lib/TWiki.pm,v
retrieving revision 1.325
diff -r1.325 TWiki.pm
2963c2963
< $val =~ s/</>/g;
---
> $val =~ s/>/>/g;
I guess we first need to be clearer about what verbatim is. So far it's been about not altering content, rather than making sure browswer render it as typed; so I have changed the to a
FeatureEnhancementRequest. This change makes sense, but might need to be more general and we need to be sure there are no side effects.
--
JohnTalintyre - 23 Apr 2004
Fix record