The documentation says that the second parameter to
is a reference to a hash that maps the placeholders to the removed blocks. And later it states that
Placeholders are text strings constructed using the tag name and a
sequence number e.g. 'pre1', "verbatim6", "head1" etc. Placeholders are
inserted into the text inside <!--!marker!--> characters so the
text will contain <!--!pre1!--> for placeholder pre1.
A subsequent example uses verbatim, so clearly the user should assume that this parameter holds placeholders for verbatim, etc.
However, it turns out that such is not the case. The parameter only holds the map for pre.
The consequence of this is that it is *impossible to restore verbatim text that is manipulated in a plugin, once the
(deprecated) is removed.
Further, the code is inconsistent with the documentation.
My suspicion is that some overzelous optimization was used to split the placeholders into separate maps, but forgot to pass all these maps into the
- 09 Apr 2007
Yes, your analysis is right on the money. Confirmed.
| Summary ||
Parameter passed to preRenderingHandler incorrect
| ReportedBy ||
| Codebase ||
4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.1.0, 4.1.1, 4.1.2
| SVN Range ||
TWiki-4.1.2, Sat, 07 Apr 2007, build 13305
| AppliesTo ||
| Component ||
| Priority ||
| CurrentState ||
| WaitingFor ||
| Checkins ||
TWikirev:13389 TWikirev:13390 TWikirev:13391 TWikirev:13392 TWikirev:13396
| TargetRelease ||
| ReleasedIn ||