On 7 April 2013 02:24, <[email protected]> wrote:

> I'm new to AsciiDoc, but I've found what I consider a bug.
>
> In this case, the 2 block titles don't have a paragraph directly below
> them, so the first (Treemap) is getting dropped from the output, and the
> second (Graph) is getting reordered below the "Issues" title.
>

Which is incorrect syntax, see
http://www.methods.co.nz/asciidoc/userguide.html#X42 "A BlockTitle is
applied to the immediately following Paragraph..." so having two block
titles in a row is undefined.


>
> If it's expected behavior (which I hope not), AsciiDoc should print a
> warning that the Treemap text was dropped, and that the Graph text was
> reordered.
>

There is no "expected" behaviour for undefined syntax.  Asciidoc is not a
compiler, it does not validate that input matches a specific layout and
very few such "invalid" inputs have warnings.  Asciidoc is a loose
configuration guided text markup translator and can even produce invalid
output (see
http://www.methods.co.nz/asciidoc/faq.html#_asciidoc_sometimes_generates_invalid_output_markup_why
).

This is particularly because Asciidoc doesn't read the whole file in one
go, allowing processing of essentially unlimited size documents.

Cheers
Lex



>
> I ran via "asciidoc -o bug.html bug.txt"
>
> Thanks,
>
> Payton
>
> [----snip file below----]
>
> Presentation
> ------------
>
> .Treemap, Heat Map
> .Graph of bugs?
>
> Issues
> ~~~~~~
>
> First issue paragraph.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to