[Zope-PTK] Patchlet...
Joerg Lehmann
joerg@luga.de
Tue, 20 Feb 2001 18:59:07 +0100
Hi,
would someone please apply the following patch (or something
equivalent) to PTKDemo/Document.py. Otherwise the title of a
HTML-Document is lost after editing it (unless a
<body><title>Title</tile></body>-segment is present).
Greetings,
Joerg
--- Document.py.orig Tue Feb 20 18:37:17 2001
+++ Document.py Tue Feb 20 18:41:06 2001
@@ -160,7 +160,7 @@
parser = SimpleHTMLParser()
parser.feed(text)
headers.update(parser.metatags)
- headers['Title'] = parser.title
+ if parser.title: headers['Title'] = parser.title
b = bodyfinder.search(text)
if b: text = self.text = b.group('bodycontent')
text_format = self.text_format = 'html'