# HG changeset patch # User cmlenz # Date 1236978319 0 # Node ID 7a422be6f6a653833b4ba646e28fb3b5eb811213 # Parent 6e46513e1c5c8faab78f67d7c8822346a80105ae Follow-up fix for [1038]. diff --git a/genshi/output.py b/genshi/output.py --- a/genshi/output.py +++ b/genshi/output.py @@ -469,7 +469,8 @@ output = cache_get((kind, data)) if output is not None: yield output - if kind is START or kind is EMPTY and data[0] in noescape_elems: + if (kind is START or kind is EMPTY) \ + and data[0] in noescape_elems: noescape = True elif kind is END: noescape = False