From: Jason D. <ja...@in...> - 2004-11-07 04:09:30
|
Hi. I might have discovered a bug in the HTML writer when trying to write documents containing a single paragraph. >>> import docutils.core >>> docutils.core.publish_parts('foo', writer_name='html')['body'] u'<div class="document">\nfoo</div>\n' >>> docutils.core.publish_parts('foo\n\nbar', writer_name='html')['body'] u'<div class="document">\n<p>foo</p>\n<p>bar</p>\n</div>\n' Notice the first example doesn't wrap "foo" with a p tag. But with more than one paragraph, as in the second example, it is wrapped in a p tag. This is using the latest CVS code. -- Jason |