aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-03-06 17:23:33 +0100
committerUlrich Müller <ulm@gentoo.org>2020-03-06 17:23:33 +0100
commitd7fd191af16b7ebe32ea13d5bef2c7ef1f0da538 (patch)
tree8fc6325c26cc2568031adf61b5e797e2bf061959 /appendices
parentFix list-groups in text browsers (diff)
downloaddevmanual-d7fd191af16b7ebe32ea13d5bef2c7ef1f0da538.tar.gz
devmanual-d7fd191af16b7ebe32ea13d5bef2c7ef1f0da538.tar.bz2
devmanual-d7fd191af16b7ebe32ea13d5bef2c7ef1f0da538.zip
devbook-guide: Restore example for nested lists.
This partially reverts commit 491304c. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'appendices')
-rw-r--r--appendices/devbook-guide/text.xml40
1 files changed, 35 insertions, 5 deletions
diff --git a/appendices/devbook-guide/text.xml b/appendices/devbook-guide/text.xml
index 26de10e..51e8a8d 100644
--- a/appendices/devbook-guide/text.xml
+++ b/appendices/devbook-guide/text.xml
@@ -465,18 +465,48 @@ that you must close all tags including list items unlike in HTML.
<p>
Definition lists (<c>&lt;dl&gt;</c>) are also supported. Please note that
-neither the definition term tag (<c>&lt;dt&gt;</c>) nor the definition data tag
-(<c>&lt;dd&gt;</c>) accept any other block level tag such as paragraphs or
-admonitions. A definition list comprises:
+the definition term tag (<c>&lt;dt&gt;</c>) does not accept any other block
+level tag such as paragraphs or admonitions. A definition list comprises:
</p>
<dl>
<dt><c>&lt;dl&gt;</c></dt>
<dd>A <b>D</b>efinition <b>L</b>ist Tag containing</dd>
<dt><c>&lt;dt&gt;</c></dt>
- <dd><b>D</b>efinition <b>T</b>erm Tags,</dd>
+ <dd><b>D</b>efinition <b>T</b>erm Tags</dd>
<dt><c>&lt;dd&gt;</c></dt>
- <dd>each followed by one or more <b>D</b>efinition <b>D</b>ata Tags.</dd>
+ <dd>and <b>D</b>efinition <b>D</b>ata Tags.</dd>
+</dl>
+
+<p>
+The following example copied from
+<uri link="https://www.w3.org/TR/REC-html40/struct/lists.html">w3.org</uri>
+shows that lists may also be nested and different list types may be used
+together:
+</p>
+
+<dl>
+ <dt>The ingredients:</dt>
+ <dd>
+ <ul>
+ <li>100 g flour</li>
+ <li>10 g sugar</li>
+ <li>1 cup water</li>
+ <li>2 eggs</li>
+ <li>salt, pepper</li>
+ </ul>
+ </dd>
+ <dt>The procedure:</dt>
+ <dd>
+ <ol>
+ <li>Mix dry ingredients thoroughly.</li>
+ <li>Pour in wet ingredients.</li>
+ <li>Mix for 10 minutes.</li>
+ <li>Bake for one hour at 300 degrees.</li>
+ </ol>
+ </dd>
+ <dt>Notes:</dt>
+ <dd>The recipe may be improved by adding raisins.</dd>
</dl>
</body>