From: Felix W. <fel...@us...> - 2004-11-09 17:13:11
|
Update of /cvsroot/docutils/docutils/docutils/writers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14221 Modified Files: html4css1.py Log Message: removed error-handling comment for block-level raw nodes with class attribute; this case should be handled by the parser Index: html4css1.py =================================================================== RCS file: /cvsroot/docutils/docutils/docutils/writers/html4css1.py,v retrieving revision 1.134 retrieving revision 1.135 diff -u -d -r1.134 -r1.135 --- html4css1.py 9 Nov 2004 16:51:33 -0000 1.134 +++ html4css1.py 9 Nov 2004 17:13:02 -0000 1.135 @@ -1025,11 +1025,6 @@ if 'html' in node.get('format', '').split(): add_span = node.attributes.get('class') is not None if add_span: - #if not isinstance(node.parent, nodes.TextElement): - # # I'd like to insert a system_message or - # # something like that, because block-level raw - # # elements may not have the class attribute set. - # # What shall we do in this case? self.body.append(self.starttag(node, 'span', suffix='')) self.body.append(node.astext()) if add_span: |