Quickbook: Fix indented code parsing in lists.

[SVN r77346]
This commit is contained in:
Daniel James 2012-03-15 22:59:49 +00:00
parent 277bdf3a00
commit fd49fdb531
3 changed files with 41 additions and 1 deletions

View File

@ -242,7 +242,7 @@ namespace quickbook
, no_eols(true)
, actions_(actions)
, check_indentation(*this, &main_grammar_local::check_indentation_impl)
, check_code_block(*this, &main_grammar_local::check_indentation_impl)
, check_code_block(*this, &main_grammar_local::check_code_block_impl)
, start_blocks(*this, &main_grammar_local::start_blocks_impl)
, end_blocks(*this, &main_grammar_local::end_blocks_impl)
, in_list(*this)

View File

@ -495,4 +495,32 @@
</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
<programlisting><phrase role="identifier">B</phrase>
</programlisting>
<para>
C
</para>
</simpara>
</listitem>
<listitem>
<simpara>
D
<programlisting><phrase role="identifier">E</phrase>
</programlisting>
</simpara>
</listitem>
<listitem>
<simpara>
F
</simpara>
</listitem>
</itemizedlist>
</section>
</article>

View File

@ -133,3 +133,15 @@ Don't end list with comment 2:
D2
[endsect]
[section Indented code blocks in lists]
* A
B
C
* D
E
* F
[endsect]