|
From: David A. <da...@bo...> - 2002-12-17 04:21:38
|
David Goodger <go...@py...> writes:
> David Abrahams wrote:
>> When I format the following as HTML with the current CVS
>>
>> ---
>> * User Guided wrapping
>> * Require minimal user intervention
>> * But intervention must be possible when needed
>> ---
>>
>> It looks like:
>>
>> ---
>> *
>> User Guided wrapping
>> * Require minimal user intervention
>> * But intervention must be possible when needed
>> ---
>>
>> Is that to be expected?
>
> Pretty much. The indentation of nested lists is critical. It's informative
> to see how the parser interprets this input. I use the command::
>
> python tools/quicktest.py
>
> And feed the above as input to stdin, this is what comes out
> (wrapped a bit)::
>
> <document source="<stdin>">
> <bullet_list bullet="*">
> <list_item>
> <definition_list>
> <definition_list_item>
> <term>
> User Guided wrapping
> <definition>
> <bullet_list bullet="*">
> <list_item>
> <paragraph>
> Require minimal user
> intervention
> <list_item>
> <paragraph>
> But intervention must be
> possible when needed
>
> You've got a bullet list item containing a definition list item
> containing a bullet list in the definition. Reduce the indentation of
> lines 2 & 3 by one space each and I think you'll get what you want.
Ouch, that didn't work:
quicktest.py results:
<document source="<stdin>">
<bullet_list bullet="*">
<list_item>
<paragraph>
User Guided wrapping
* Require minimal user intervention
* But intervention must be possible when needed
--
HTML snippet:
<div class="document">
<ul class="simple">
<li>User Guided wrapping
* Require minimal user intervention
* But intervention must be possible when needed</li>
</ul>
</div>
>> Why the CR after the initial bullet?
>
> That I can't tell you. What browser?
IE6
> What stylesheet?
The one from your tools/ subdirectory
>> The command I used was:
>>
>> python /src/docutils/tools/html.py --embed-stylesheet -gdts \
>> fu.txt fu.html
>
> Was the stylesheet successfully embedded? Please check.
Yup.
--
David Abrahams
da...@bo... * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
|