# HG changeset patch # User cmlenz # Date 1236340507 0 # Node ID 68f652fa9e6c541fb7f7185afc2e3382c3babe48 # Parent ef9cc8988260445594fc1a01be5c6957eb4453fa Revert [914] for now, see #293. diff --git a/genshi/template/markup.py b/genshi/template/markup.py --- a/genshi/template/markup.py +++ b/genshi/template/markup.py @@ -329,9 +329,10 @@ for event in stream: - # We (currently) only care about start events for matching + # We (currently) only care about start and end events for matching # We might care about namespace events in the future, though - if not match_templates or event[0] is not START: + if not match_templates or (event[0] is not START and + event[0] is not END): yield event continue