On Fri, Jan 1, 2010 at 6:21 PM, Georg Brandl <[email protected]> wrote: > 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 >
I see. Perhaps then the css should be changed to remove the spacing around <p class="first">...</p> when it is part of a list item? It just looks inconsistent when one list doesn't have this extra space and a second one does for no apparent reason. - Max -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
