diff markup/filters.py @ 93:f648152df7fd

Minor bugfi x follow-up to [97]: don't yield the terminator event from the whitespace filter.
author cmlenz
date Thu, 20 Jul 2006 23:33:51 +0000
parents 3b75c6730b29
children e815c2c07572
line wrap: on
line diff
--- a/markup/filters.py
+++ b/markup/filters.py
@@ -134,7 +134,8 @@
                             trim_trailing_space('',
                                 textbuf.pop())), quotes=False)
                         yield TEXT, output, pos
-                yield kind, data, pos
+                if kind is not None:
+                    yield kind, data, pos
 
 
 class HTMLSanitizer(object):
Copyright (C) 2012-2017 Edgewall Software