diff markup/core.py @ 6:71e8e645fe81 trunk

Simplified implementation of `py:content` directive.
author cmlenz
date Sun, 04 Jun 2006 10:46:14 +0000
parents dbb08edbc615
children 3710e3d0d4a2
line wrap: on
line diff
--- a/markup/core.py
+++ b/markup/core.py
@@ -246,7 +246,9 @@
                             .replace('&', '&')
 
     def plaintext(self, keeplinebreaks=True):
-        """Returns the text as a `unicode`with all entities and tags removed."""
+        """Returns the text as a `unicode` string with all entities and tags
+        removed.
+        """
         text = unicode(self.striptags().stripentities())
         if not keeplinebreaks:
             text = text.replace('\n', ' ')
Copyright (C) 2012-2017 Edgewall Software