[CMF-checkins] CVS: CMF/CMFDefault - Document.py:1.52.10.4

Yvo Schubbe schubbe@web.de
Mon, 3 Feb 2003 13:32:46 -0500


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv11061/CMFDefault

Modified Files:
      Tag: yuppie-collector041-branch
	Document.py 
Log Message:
third step:
- added tests for xhtml content
- modified tests for bodyfinder
- made new tests pass

=== CMF/CMFDefault/Document.py 1.52.10.3 => 1.52.10.4 ===
--- CMF/CMFDefault/Document.py:1.52.10.3	Sun Feb  2 17:09:27 2003
+++ CMF/CMFDefault/Document.py	Mon Feb  3 13:32:13 2003
@@ -167,7 +167,8 @@
             contents=file.read()
             if contents:
                 text = self.text = contents
-        text = bodyfinder(text)
+        if html_headcheck(text):
+            text = bodyfinder(text)
         self.setFormat(text_format)
         self._edit(text=text, text_format=text_format, safety_belt=safety_belt)
         self.reindexObject()