Mercurial > genshi > mirror
diff genshi/output.py @ 740:0c3a2d7bf9a1 trunk
Fix a bad reference in the `TextSerializer` docstring.
author | cmlenz |
---|---|
date | Fri, 06 Jun 2008 15:56:51 +0000 |
parents | be0b4a7b2fd4 |
children | 74b5c5476ddb 1fd97b75cdc9 |
line wrap: on
line diff
--- a/genshi/output.py +++ b/genshi/output.py @@ -494,7 +494,7 @@ >>> print elem.generate().render(TextSerializer) <a href="foo">Hello & Bye!</a><br/> - You can use the `strip_markup` to change this behavior, so that tags and + You can use the ``strip_markup`` to change this behavior, so that tags and entities are stripped from the output (or in the case of entities, replaced with the equivalent character): @@ -503,6 +503,11 @@ """ def __init__(self, strip_markup=False): + """Create the serializer. + + :param strip_markup: whether markup (tags and encoded characters) found + in the text should be removed + """ self.strip_markup = strip_markup def __call__(self, stream):