On 8 April 2013 06:33, <[email protected]> wrote:
>
> Which is incorrect syntax, see http://www.methods.co.nz/**
>> asciidoc/userguide.html#X42<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.
>>
>
>
>> 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<http://www.methods.co.nz/asciidoc/faq.html#_asciidoc_sometimes_generates_invalid_output_markup_why>
>> ).
>>
>
> I understand it is incorrect syntax. I would presume the tool should
> notify the user if they make a mistake, and not just drop a title.
>
> I'm not expecting AsciiDoc to be a type-checking compiler, but from using
> typesetting languages like LaTeX, I expect warnings/errors when the tool
> detects bad user input.
>
> Is it that difficult to detect "block title" followed by "block title" and
> issue a warning to the user?
>
As I said previously (after I read your question again, sorry about the
very first furphy reply) Asciidoc does not know anything about the required
order of items. It does not "know" that a title must be followed by a
paragraph, or that two block titles in a row is illegal, and there is no
way in the conf file to tell it so. The line in conf
blocktitle=^\.(?P<title>([^.\s].*)|(\.[^.\s].*))$
just tells Asciidoc to store a value in the {title} attribute, it says
nothing about where the attribute is used. It can actually be consumed by
quite a number of elements, and you can configure more to do so.
So yes it is difficult to detect two block titles in a row.
Cheers
Lex
>
> Payton
>
> --
> 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.