| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 | <meta name="generator" content="Docutils 0.23: https://docutils.sourceforge.io/" /> |
| 7 | <title>compact_lists.rst</title> |
| 8 | <link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" /> |
| 9 | </head> |
| 10 | <body> |
| 11 | <div class="document"> |
| 12 | |
| 13 | |
| 14 | <ul class="simple"> |
| 15 | <li>This is an ordinary simple bullet list.</li> |
| 16 | <li>It should be made compact (<p> & </p> tags omitted).</li> |
| 17 | </ul> |
| 18 | <hr class="docutils" /> |
| 19 | <ul> |
| 20 | <li><p class="first">This is a bullet list that is not simple.</p> |
| 21 | <p>There are multiple paragraphs in some items.</p> |
| 22 | </li> |
| 23 | <li><p class="first">It should not be made compact.</p> |
| 24 | </li> |
| 25 | <li><p class="first">Even though some items may have only one paragraph.</p> |
| 26 | </li> |
| 27 | </ul> |
| 28 | <hr class="docutils" /> |
| 29 | <ul class="open"> |
| 30 | <li><p class="first">This is a simple bullet list, but class="open" is set.</p> |
| 31 | </li> |
| 32 | <li><p class="first">It should not be made compact.</p> |
| 33 | </li> |
| 34 | </ul> |
| 35 | <hr class="docutils" /> |
| 36 | <ul class="compact simple"> |
| 37 | <li>This is a bullet list that is not simple.<p>There are multiple paragraphs in some items.</p> |
| 38 | </li> |
| 39 | <li>However, the class="compact" setting will cause |
| 40 | all first paragraph's <p> & </p> tags to be omitted.</li> |
| 41 | <li>Items with multiple paragraphs will not appear changed.</li> |
| 42 | <li>Items may have one paragraph, or multiple.<p>Items with multiple paragraphs will still be followed |
| 43 | by vertical whitespace because of the later paragraphs.</p> |
| 44 | </li> |
| 45 | <li>The effect is interesting.</li> |
| 46 | </ul> |
| 47 | </div> |
| 48 | </body> |
| 49 | </html> |