-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bullet list rendered "opened up" #3489
Comments
Until docutils-0.13, its HTML writer removes On the other hand, since docutils-0.13, CSS is used for the list compaction. see |
Thanks for info, I have reduced to MWE: No p
----
* A
* B
* C
No p
----
* D
* E
- Ea
* F
With p
------
* G
* Hpre
- Ha
Hpost
* K The pseudoxml output shows each list item always is <h2>No p<a class="headerlink" href="#no-p" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
</div>
<div class="section" id="id1">
<h2>No p<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>D</li>
<li>E<ul>
<li>Ea</li>
</ul>
</li>
<li>F</li>
</ul>
</div>
<div class="section" id="with-p">
<h2>With p<a class="headerlink" href="#with-p" title="Permalink to this headline">¶</a></h2>
<ul>
<li><p class="first">G</p>
</li>
<li><p class="first">Hpre</p>
<ul class="simple">
<li>Ha</li>
</ul>
<p>Hpost</p>
</li>
<li><p class="first">K</p>
</li>
</ul> With docutils 0.13.1, python 3.5.2, tested with classic and alabaster themes. The result is discumcerting and seems to contradict the description of |
ah http://docutils.sourceforge.net/docs/user/config.html#compact-lists does indeed make me think it is simply my misunderstanding. Well in that case, DocUtils behaviour under |
The description in Sphinx docs of
is hard to understand. In the example above, pseudoxml gives
and this counts as only one paragraph for the compact lists option of Docutils. But I see one paragraph + a sublist. This makes behaviour in the end very surprising. |
Before closing let me add for demonstration an illustrative example Deeply nested (simple)
----------------------
* a
- aa
* aaa
* aab
* aac
- ab
* aba
* abb
* abc
* b
- ba
* baa
* bab
* bac
- bb
* bba
* bbb
- bbba
- bbbb
* bbc
* c
- ca
* caa
* cab
* cac
- cb
* cba
* cbb
* cbc
Deeply nested (not simple)
--------------------------
* a
- aa
* aaa
* aab
* aac
- ab
* aba
* abb
* abc
* b
- ba
* baa
* bab
* bac
- bb
* bba
* bbb
- bbba
- bbbb
BBB
* bbc
* c
- ca
* caa
* cab
* cac
- cb
* cba
* cbb
* cbc A single change, deeply nested, has on effet on top level items, under It is hard to understand humanly the logic which leads to <h2>Deeply nested (not simple)<a class="headerlink" href="#deeply-nested-not-simple" title="Permalink to this headline">¶</a></h2>
<ul>
<li><p class="first">a</p>
<ul class="simple">
<li>aa<ul>
<li>aaa</li>
<li>aab</li>
<li>aac</li>
</ul>
</li>
<li>ab<ul>
<li>aba</li>
<li>abb</li>
<li>abc</li>
</ul>
</li>
</ul>
</li>
<li><p class="first">b</p>
<ul>
<li><p class="first">ba</p>
<ul class="simple">
<li>baa</li>
<li>bab</li>
<li>bac</li>
</ul>
</li>
<li><p class="first">bb</p>
<ul>
<li><p class="first">bba</p>
</li>
<li><p class="first">bbb</p>
<ul class="simple">
<li>bbba</li>
<li>bbbb</li>
</ul>
<p>BBB</p>
</li>
<li><p class="first">bbc</p>
</li>
</ul>
</li>
</ul>
</li>
<li><p class="first">c</p>
<ul class="simple">
<li>ca<ul>
<li>caa</li>
<li>cab</li>
<li>cac</li>
</ul>
</li>
<li>cb<ul>
<li>cba</li>
<li>cbb</li>
<li>cbc</li>
</ul>
</li>
</ul>
</li>
</ul> |
Close #3489: bullet list rendered "opened up"
closed via docs made more precise at 4119439 |
Subject: why is some list at top of CHANGES rendered with paragraphs ?
Problem
http://www.sphinx-doc.org/en/master/changes.html#deprecated
renders "opened up". I don't understand why from reST source, it does not look
different from similar mark-up elsewhere.
Error logs / results
Expected results
list items do not use
<p>
tagsEnvironment info
Apologies if I am just ignorant of some reStructuredText spec.
The text was updated successfully, but these errors were encountered: