This problem occurs on our corporate TWiki installation. We are using [Plugins/FilterPlugin][FilterPlugin]] v1.51 (the latest).
FilterPlugin works as expected up to the last possible match. After that, all trailing text disappears entirely.
In the example below, the text
, IP datagrams on Avian Carriers -- if you can see this, Twiki is no longer eating text that I put here.
vanishes after rendering.
The Code
---+++ protocol specs
%STARTSUBST{pattern="RFC ?(\d+)" format="[[http://www.rfc-editor.org/rfc/rfc$1.txt][RFC$1]]"}%
* RFC 2971, IMAP =ID= Extension (the moral equivalent of =User-Agent=)
* RFC 3501, the IMAP 4 base spec, replacing RFC 2060 and RFC 1730
* RFC 5530, IMAP Response Codes, which improves the machine-readable IMAP errors
* RFC 4315, =UIDPLUS= extension, which replaces RFC 2359
* RFC 4422, SASL, the "Simple" Authentication and Security Layer, is really a generalization of the IMAP4 =AUTHENTICATE= command.
* RFC 1149, IP datagrams on Avian Carriers -- if you can see this, Twiki is no longer eating text that I put here.
%STOPSUBST%
Results (screenshot)
Workaround
The workaround is to force one final pattern match after the real data.
---+++ protocol specs
%STARTSUBST{pattern="RFC ?(\d+)" format="[[http://www.rfc-editor.org/rfc/rfc$1.txt][RFC$1]]"}%
* RFC 2971, IMAP =ID= Extension (the moral equivalent of =User-Agent=)
* RFC 3501, the IMAP 4 base spec, replacing RFC 2060 and RFC 1730
* RFC 5530, IMAP Response Codes, which improves the machine-readable IMAP errors
* RFC 4315, =UIDPLUS= extension, which replaces RFC 2359
* RFC 4422, SASL, the "Simple" Authentication and Security Layer, is really a generalization of the IMAP4 =AUTHENTICATE= command.
* RFC 1149, IP datagrams on Avian Carriers -- if you can see this, Twiki is no longer eating text that I put here.
<!-- RFC 0 workaround for SUBST bug -->
%STOPSUBST%
Results (screenshot)
--
TWiki:Main/VickiBrown
- 27 Oct 2009