aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/cutpaste.pm:_missing_filter_call.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-09-18 13:36:29 -0400
committerJoey Hess <joey@kitenet.net>2010-09-18 13:36:29 -0400
commitb2b599dfb9d042da324480e03d3a55873ac336d6 (patch)
tree7a6f08b998362d4a10ea52c239532c2eac710dec /doc/bugs/cutpaste.pm:_missing_filter_call.mdwn
parent4079c06be22d0eb31bd0bead4b8f53a9831804e9 (diff)
downloadikiwiki-b2b599dfb9d042da324480e03d3a55873ac336d6.tar
ikiwiki-b2b599dfb9d042da324480e03d3a55873ac336d6.tar.gz
response
Diffstat (limited to 'doc/bugs/cutpaste.pm:_missing_filter_call.mdwn')
-rw-r--r--doc/bugs/cutpaste.pm:_missing_filter_call.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/bugs/cutpaste.pm:_missing_filter_call.mdwn b/doc/bugs/cutpaste.pm:_missing_filter_call.mdwn
index 30bd52996..475880f0a 100644
--- a/doc/bugs/cutpaste.pm:_missing_filter_call.mdwn
+++ b/doc/bugs/cutpaste.pm:_missing_filter_call.mdwn
@@ -21,3 +21,21 @@ is being doing without `filter`ing first, for example in the same file, `copy`
function.
--[[tschwinge]]
+
+> So, in English, page text inside a cut directive will not be filtered.
+> Because the cut directive takes the text during the scan pass, before
+> filtering happens.
+>
+> Commit 192ce7a238af9021b0fd6dd571f22409af81ebaf and
+> [[bugs/po_vs_templates]] has to do with this.
+> There I decided that filter hooks should *only* act on the complete
+> text of a page.
+>
+> I also suggested that anything that wants to reliably
+> s/FOO/BAR/ should probably use a sanitize hook, not a filter hook.
+> I think that would make sense in this example.
+>
+> I don't see any way to make cut text be filtered while satisfying these
+> constraints, without removing cutpaste's ability to have forward pastes
+> of text cut laster in the page. (That does seems like an increasingly
+> bad idea..) --[[Joey]]