changeset 740:0c3a2d7bf9a1 trunk

Fix a bad reference in the `TextSerializer` docstring.
author cmlenz
date Fri, 06 Jun 2008 15:56:51 +0000
parents 6de290dec976
children f4f8ffefbd49
files genshi/output.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
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 &amp; 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):
Copyright (C) 2012-2017 Edgewall Software