[CMF-checkins] CVS: CMF/CMFCollector - WebTextDocument.py:1.3

Ken Manheimer klm@zope.com
Mon, 12 Nov 2001 10:23:54 -0500


Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv7641

Modified Files:
	WebTextDocument.py 
Log Message:
.handleText(): It was *wrong* to use SimpleHTMLParser for the content!
It's no help, and occasionally it's destructive.


=== CMF/CMFCollector/WebTextDocument.py 1.2 => 1.3 ===
                                        stx_level=stx_level or self._stx_level)
         else:
-            cooked = body = ''
-            parser = SimpleHTMLParser()
-            parser.feed(text)
-            headers = parser.metatags
-            if parser.title:
-                headers['Title'] = parser.title
-            bodyfound = bodyfinder(text)
-            if bodyfound:
-                body = bodyfound
-                cooked = util.format_webtext(bodyfound)
+            cooked = body = util.format_webtext(text)
+            headers = {}
             return headers, body, cooked, format
 
 InitializeClass(WebTextDocument)