Mercurial > genshi > mirror
changeset 810:eebb2c723f23 stable-0.5.x
Ported [1011] to 0.5.x branch.
author | cmlenz |
---|---|
date | Fri, 06 Mar 2009 11:55:56 +0000 |
parents | 5103d9c89190 |
children | 967236817c6a |
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 @@ -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