changeset 810:98a1b03bbc89 stable-0.5.x

Ported [1011] to 0.5.x branch.
author cmlenz
date Fri, 06 Mar 2009 11:55:56 +0000
parents a134e21a8f44
children b87be223c83c
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
 
Copyright (C) 2012-2017 Edgewall Software