# HG changeset patch # User cmlenz # Date 1236340556 0 # Node ID 98a1b03bbc8939bc09ecfcc824c4855343d6c456 # Parent a134e21a8f44354224a66e8e35529ecb2cba83d5 Ported [1011] to 0.5.x branch. diff --git a/genshi/template/markup.py b/genshi/template/markup.py --- a/genshi/template/markup.py +++ b/genshi/template/markup.py @@ -244,9 +244,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