[quickbook] Lists with paragraphs

Is there any way to specify a list with paragraphs embedded in each list item, such as a final result of: 1. Some data here. Some more data here. Maybe some code here. 2. Other data here More code here. In other words I can normally do this with lists by not separating lines which form individual paragraphs, but I want the spacing and paragraphs for each list item.

Is there any way to specify a list with paragraphs embedded in each list item, such as a final result of:
1. Some data here.
Some more data here.
Maybe some code here.
2. Other data here
More code here.
In other words I can normally do this with lists by not separating lines which form individual paragraphs, but I want the spacing and paragraphs for each list item.
You can either use [br], which works but results in copious warnings from quickbook, or you can define template that wraps each paragraph in <para>...</para> docbook markup: [template para[text] '''<para>'''[text]'''</para>'''] Then wrap each paragraph in the list in [para ...] blocks. HTH, John.

On 10/19/2010 4:23 AM, John Maddock wrote:
Is there any way to specify a list with paragraphs embedded in each list item, such as a final result of:
1. Some data here.
Some more data here.
Maybe some code here.
2. Other data here
More code here.
In other words I can normally do this with lists by not separating lines which form individual paragraphs, but I want the spacing and paragraphs for each list item.
You can either use [br], which works but results in copious warnings from quickbook, or you can define template that wraps each paragraph in <para>...</para> docbook markup:
[template para[text] '''<para>'''[text]'''</para>''']
Then wrap each paragraph in the list in [para ...] blocks.
Unfortunately the macro does not work when there are code blocks in a list item. Just putting '''<para>''' and '''</para>''' around the code block does work.
participants (2)
-
Edward Diener
-
John Maddock