Report bug (and patch) with conditional preprocessing and scan

master
Giuseppe Bilotta 2011-08-26 18:22:14 +02:00
parent 2dda5d8479
commit 6bc787e14c
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[[!template id=gitbranch branch=GiuseppeBilotta/scanif author="Giuseppe Bilotta"]]
When a directive that should be run during scan preprocessing is inside
an if directive, it doesn't get called because the if preprocessing does
not run during scan.
I've written a simple [[patch]] to fix the issue, currently hosted on the
scanif branch of my repository. The patch also passes the preview option
back to the Ikiwiki::preprocess call, making sure that whatever is being
reprocessed is done so in the same conditions as the original call.