commit:     d7fd191af16b7ebe32ea13d5bef2c7ef1f0da538
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  6 16:23:33 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Mar  6 16:23:33 2020 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=d7fd191a

devbook-guide: Restore example for nested lists.

This partially reverts commit 491304c.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 appendices/devbook-guide/text.xml | 40 ++++++++++++++++++++++++++++++++++-----
 1 file 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>

Reply via email to