I discovered this on my site, and confirmed this is also
happening with the online Zope Book 2.5.
If you view source on a BackTalk document, and scroll
down to the meat of the document, you see another set of
HTML, BODY and TITLE tags within your document. On
Opera 6.x this caused some formatting inconsistencies.
The Zope StructuredText.HTMLWithImages' document()
function adds these extra tags.
I tried to copy HTMLWithImages into the BackTalk folder
and over-ride with my own, but couldn't get that to work -
probably due to lack of Python module importing rules.
Since I don't have other StructuredText documents on my
site, I went ahead and changed the system-wide version
of HTMLWithImages - commenting out some of the the
lines:
def document(self, doc, level, output):
#output('<html>\n')
children=doc.getChildNodes()
#if (children and
# children[0].getNodeName() ==
'StructuredTextSection'):
# output('<head>\n<title>%s</title>\n</head>\n' %
#
children[0].getChildNodes()[0].getNodeValue())
#output('<body bgcolor="#FFFFFF">\n')
for c in children:
getattr(self,
self.element_types[c.getNodeName()])(c, level, output)
#output('</body>\n')
#output('</html>\n')
I assume best fix would be to:
(a) Either over-ride this somewhere in BackTalk like I
tried to do, or
(b) Somehow prevent the STX document from being
encapsulated within a StructuredTextSection - I couldn't
figure this out either.
Logged In: NO
I meant, above, "probably due to my lack of knowledge of
Python module importing rules."