|
From: David G. <go...@py...> - 2002-12-17 02:55:16
|
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.
> Why the CR after the initial bullet?
That I can't tell you. What browser? What stylesheet?
> 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.
--
David Goodger <go...@py...> Open-source projects:
- Python Docutils: http://docutils.sourceforge.net/
(includes reStructuredText: http://docutils.sf.net/rst.html)
- The Go Tools Project: http://gotools.sourceforge.net/
|