On 2011-11-03, Friedrich Romstedt wrote:

> It seems there is a kind-of problem with sub-lists in non-compact lists.

...

> *   item 1

>     -   subitem 1.1
>     -   subitem 1.2

> *   item 2

>     second paragraph

...

is rendered like:

> *   item 1

>     -   subitem 1.1
>     -   subitem 1.2
> *   item 2

>     second paragraph

...

> -  The second list should contain spaces between all paragraphs, but
> the space between the sublist and the following item of the top-level
> list is missing.

...

> It appears by inspection of the html source code, that indeed the
> sublist is not contained in a <p> tag.  This appears like a mistake to
> me.  Because it should be a paragraph, since it is an entity on its
> own to be rendered such.  It also generates a rather wrong-looking
> visual impression of the rendered html output.

I don't think that a sub-list of a list should be nested in a paragraph
element.

> I don't know it this issue is a general docutils issue or if it can be
> handled within Sphinx. 

I compiled the example with Docutils (rst2html.py). In my browser
(firefox as well as midori) there is the correct "paragraph separating
space" between "subitem 1.2" and "item 2" (with the default stylesheet
html4css1.css).

> I would appreciate a solution, since I'm
> observing this mistake since years now; although I seem to be a rare
> case in constructing such lists, it apprears regularly to me.

I suppose that the visual impression of the rendered html output is due
the used CSS style sheet and can be fixed in a style sheet (either as a fix
in the default Sphinx style or as a workaround in a custom style sheet).

Günter




-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
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