The following rst snipped causes some trouble.  I see and appreciate the 
mechanism that "complex" or rather "complex enough" list items are rendered 
using paragraphs and so all list items, the problem is, that does not apply 
to contained <ul> (and <ol> as well, I think) in Sphinx at least.  Don't 
know if that is a Sphinx or a docutils issue.  I feel this as an issue, 
since the rst input and the html output do not match in visual alignment.

<rst>
This renders correct:

*   item 1

    -   subitem 1.1
    -   subitem 1.2

*   item 2

This not:

*   item 1

    -   subitem 1.1
    -   subitem 1.2

*   item 2
    
    second paragraph
</rst>

I indented and reformatted the html a bit to foster readability.

<html>

<p>This renders correct:</p>
<ul class="simple">
  <li>
    item 1
    <ul>
      <li>subitem 1.1</li>
      <li>subitem 1.2</li>
    </ul>
  </li><li>
    item 2
  </li>
</ul>
<p>This not:</p>
<ul>

  <li>
    <p class="first">item 1</p>
    <ul class="simple">
    <!-- The ul is not enclosed in a p -->
      <li>subitem 1.1</li>
      <li>subitem 1.2</li>
    </ul>
    <!-- Hence here's no space left -->
  </li><li>
    <p class="first">item 2</p>
    <p>second paragraph</p>
  </li>
</ul>

</html>

The browser output is something like:

<output>
This renders correct:

*   item 1
    -   subitem 1.1
    -   subitem 1.2
*   item 2

This not:

*   item 1

    -   subitem 1.1
    -   subitem 1.2
*   item 2
    
    second paragraph
</output>

The space is missing in the second section between the two items of the 
outer <ul>, because there's no paragraph to end, but just the plain inner 
<ul>.

I use Firefox, if that matters (but it shouldn't I think).

I've been noticing this issue long time now, and hoped each release, but no 
avail ... so I would like to draw some attention to the problem.  I see it 
as non-serious, but it's looking a bit strange in output.

This is with Sphinx 1.1.2, no special treatments.

Friedrich

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/Uc9TEyvcNX4J.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to