Description
The Include macro from="" and to="" syntax do not work on invocations where titlesonly is not used.
Example
The following fragment should snip the Example section out of the HelpOnRules page, instead it pulls the whole page out.
[[Include(HelpOnRules,,from="== Example ==",to="==")]]
It appears this bug has been fixed in 1.3 so the example is not put live in here.
Details
MoinMoin Version |
1.2.3 |
OS and Version |
Fedora core 2 |
Python Version |
Python 2.3.3 |
Server Setup and Version |
Apache 2.0.51 with mod_python 3.1.3 |
Workaround
None I have found so far.
Discussion
Looking at Include.py I see that the from/to re code appears to be working fine. At line 158 there is a call to:-
if from_pos or to_pos != -1: inc_page.set_raw_body(body[from_pos:to_pos])
This appears to not be affecting things as expected. I don't understand the code to output the included page at present.
OK, it was that line. Patch is attached in macro-include-limits.patch
Plan
- Priority: low, extremely low even
- Assigned to: Noone
- Status:
- 1.2.4 is the last bugfix release for 1.2.
- And as you say it is already fixed in 1.3devel, the 1.3 release will fix it.