Am 25.11.2009 18:07, schrieb Maxim Khitrov: > Hello all, > > I'm using Sphinx 0.6.3. It seems that there is a minor rendering > problem when lists contain code blocks as in the following example: > > * Test1 > * Test2:: > > code > > Without the code block you would get this as a result: > > <ul class="simple"> > <li>Test1</li> > <li>Test2</li> > </ul> > > But this is what the output is when the code block is added: > > <ul> > <li><p class="first">Test1</p></li> > <li><p class="first">Test2:</p> > <div class="highlight-none"><div class="highlight"><pre>code > </pre></div> > </div> > </li> > </ul> > > The '<p class="first">..</p>' addition causes extra space to be added > between the bullet points. I don't think it needs to be there, at > least not on every list item.
This is docutils' standard behavior for lists: if they are "simple enough", no paragraphs are added, if not (e.g. multiple paragraphs in a list item, or a code block), the full markup is generated. Georg
signature.asc
Description: OpenPGP digital signature
