Hi,
In message "[ruby-talk:00689] Re: Summary of discussion about RD (Re: Documentation about RD?)"
on 99/08/19, Toshiro Kuwabara <toshirok / yb3.so-net.ne.jp> writes:
|> Me too. It should be included in RD specification.
|
|How can we indicate that new TextElement starts.
My old rd2html.rb detect (well, tryed to detect, at least) them by
indentation levels. That is:
|: term
| Text of first TextElement in definition part.
| This is verbatim, because it's indented.
| Text of FIRST TextElement, because it on the same indentation
| level. Yes, we need indent level stack to implement this.
|
| Text of FIRST TextElement, too
Empty lines are ignored for indentation (as in Python :-).
|Another one: ( use "_" as white-space.)
|
|: Term
|__Text of First TextElement.
|__
|__Text of Second TextElement.
|
|This is like Verbatim. but this may cause trouble under such condition.
|
|: Term
|__Text of First TextElement
| : Term of sub list
|____Text of First TextElement of Sub list
|__
|____Which list have this TextElement?
|
|I think that is not good either.
According to my scheme, this should be:
|: Term
|__Text of First TextElement
| : Term of sub list
|____Text of First TextElement of Sub list
|____Following line is ignored as a blank line.
|__
|____This is continuing First TextElement of Sub list,
|____because of its indent level.
|
|__Text of First TextElement.
|__Terminates sub list automagically.
What do you think?
matz.