# HG changeset patch # User cmlenz # Date 1164228908 0 # Node ID 94ff33bfe515bfc781d7be8ccf5abef2f1877c71 # Parent eb2ef86a2cec7b91ee5042a78da669a7c86a35f0 Ported [425] to 0.3.x. diff --git a/genshi/output.py b/genshi/output.py --- a/genshi/output.py +++ b/genshi/output.py @@ -183,7 +183,10 @@ _BOOLEAN_ATTRS = frozenset(['selected', 'checked', 'compact', 'declare', 'defer', 'disabled', 'ismap', 'multiple', 'nohref', 'noresize', 'noshade', 'nowrap']) - _PRESERVE_SPACE = frozenset([QName('pre'), QName('textarea')]) + _PRESERVE_SPACE = frozenset([ + QName('pre'), QName('http://www.w3.org/1999/xhtml}pre'), + QName('textarea'), QName('http://www.w3.org/1999/xhtml}textarea') + ]) def __call__(self, stream): namespace = self.NAMESPACE @@ -461,8 +464,8 @@ @param noescape: a set or sequence of tag names for which text content should not be escaped - Both the `preserve` and `noescape` sets are expected to refer to - elements that cannot contain further child elements. + The `noescape` set is expected to refer to elements that cannot contain + further child elements (such as