]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/cutpaste.pm:_missing_filter_call.mdwn
30bd52996cfcf808cd826abfdf3a10ed5ad55077
[ikiwiki.git] / doc / bugs / cutpaste.pm:_missing_filter_call.mdwn
1 Consider this:
2
3     $ wget http://www.thomas.schwinge.homeip.net/tmp/cutpaste_filter.tar.bz2
4     $ wget http://www.thomas.schwinge.homeip.net/tmp/cutpaste_filter.patch
5     
6     $ tar -xj < cutpaste_filter.tar.bz2
7     $ cd cutpaste_filter/
8     $ ./render_locally
9     $ find "$PWD".rendered/ -type f -print0 | xargs -0 grep -H -E 'FOO|BAR'
10     [notice one FOO in there]
11     $ rm -rf .ikiwiki "$PWD".rendered
12     
13     $ cp /usr/share/perl5/IkiWiki/Plugin/cutpaste.pm .library/IkiWiki/Plugin/
14     $ patch -p0 < ../cutpaste_filter.patch
15     $ ./render_locally
16     $ find "$PWD".rendered/ -type f -print0 | xargs -0 grep -H -E 'FOO|BAR'
17     [correct; notice no more FOO]
18
19 I guess this needs a general audit -- there are other places where `preprocess`
20 is being doing without `filter`ing first, for example in the same file, `copy`
21 function.
22
23 --[[tschwinge]]