Mercurial > genshi > genshi-test
changeset 809:92c5d936616b
Revert [914] for now, see #293.
author | cmlenz |
---|---|
date | Fri, 06 Mar 2009 11:55:07 +0000 |
parents | 46816d77cab7 |
children | b1e9e3209c6f |
files | genshi/template/markup.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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