e75a070a0a
Doesn't work for: templates in lists or explicit list block elements (because it detects when it's in a list based on the parser), but it is usually at least as good as the older version. This kind of thing would be much easier if I represented the lists in data rather than translating them as they are parsed. Not sure if I'll do that soon though. [SVN r85247]
480 lines
9.8 KiB
XML
480 lines
9.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
|
|
<article id="list_test" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $" xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
<title>List Test</title>
|
|
<para>
|
|
Simple list:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
<para>
|
|
Simple list:
|
|
</para>
|
|
<orderedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
</simpara>
|
|
</listitem>
|
|
</orderedlist>
|
|
<para>
|
|
Two level list:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
<para>
|
|
Two level list:
|
|
</para>
|
|
<orderedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
</orderedlist>
|
|
<para>
|
|
Three level list:
|
|
</para>
|
|
<orderedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
C
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
D
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
E
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
F
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
G
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
H
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
</orderedlist>
|
|
<para>
|
|
Three level list:
|
|
</para>
|
|
<orderedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B
|
|
<orderedlist>
|
|
<listitem>
|
|
<simpara>
|
|
C
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
D
|
|
</simpara>
|
|
</listitem>
|
|
</orderedlist>
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
G
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
H
|
|
</simpara>
|
|
</listitem>
|
|
</orderedlist>
|
|
<para>
|
|
Inconsistent Indentation:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A1
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
B1
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B2
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
C1
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
C2
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B3
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B4
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B5
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
C3
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B6
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
A2
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
A3
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
<para>
|
|
Markup in list:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
<emphasis role="bold">Bold</emphasis>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<emphasis role="bold">Bold</emphasis>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<quote>Quoted</quote>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<footnote id="list_test.f0">
|
|
<para>
|
|
Footnote
|
|
</para>
|
|
</footnote>
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<informaltable frame="all">
|
|
<tgroup cols="1">
|
|
<thead>
|
|
<row>
|
|
<entry>
|
|
<para>
|
|
Heading
|
|
</para>
|
|
</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>
|
|
<para>
|
|
Cell
|
|
</para>
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</listitem>
|
|
<listitem>
|
|
<bridgehead renderas="sect2" id="list_test.h0">
|
|
<phrase id="list_test.the_heading_for_a_list_item"/><link linkend="list_test.the_heading_for_a_list_item">The
|
|
heading for a list item</link>
|
|
</bridgehead>
|
|
<simpara>
|
|
The content of the list item.
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
<para>
|
|
Don't end list with comment 1:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A1
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
A2
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
A3
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
A4
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
<para>
|
|
Don't end list with comment 2:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A1
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
B1
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B2
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B3
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
<section id="list_test.paragraphs_in_list_items">
|
|
<title><link linkend="list_test.paragraphs_in_list_items">Paragraphs in list
|
|
items</link></title>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A1
|
|
</simpara>
|
|
<simpara>
|
|
A2
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
B1
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
C1
|
|
</simpara>
|
|
<simpara>
|
|
C2
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
<simpara>
|
|
B2
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
D1
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
E1
|
|
</simpara>
|
|
<simpara>
|
|
E2
|
|
</simpara>
|
|
<simpara>
|
|
E3
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simpara>
|
|
<simpara>
|
|
D2
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</section>
|
|
<section id="list_test.indented_code_blocks_in_lists">
|
|
<title><link linkend="list_test.indented_code_blocks_in_lists">Indented code
|
|
blocks in lists</link></title>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
A
|
|
</simpara>
|
|
<programlisting><phrase role="identifier">B</phrase>
|
|
</programlisting>
|
|
<simpara>
|
|
C
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
D
|
|
</simpara>
|
|
<programlisting><phrase role="identifier">E</phrase>
|
|
</programlisting>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
F
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</section>
|
|
</article>
|