# HG changeset patch # User cmlenz # Date 1212767811 0 # Node ID 0c3a2d7bf9a11b94a497a672acacaa231ea8bb3a # Parent 6de290dec976352586bac4c1c4650fda5b4b7779 Fix a bad reference in the `TextSerializer` docstring. diff --git a/genshi/output.py b/genshi/output.py --- a/genshi/output.py +++ b/genshi/output.py @@ -494,7 +494,7 @@ >>> print elem.generate().render(TextSerializer) Hello & Bye!
- 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):