On Tue, Jan 10, 2012 at 6:17 PM, Sebastian Kuzminsky
<[email protected]> wrote:
> Hi folks, I've run in to another couple of issues, this time with
> conditional attribute references.
>
> My situation is that I have a bunch of documents that I'm trying to build
> with both asciidoc 8.6.6 (Ubuntu 12.04 Alpha) and with 8.5.2 (Ubuntu 10.04).
>
>
> My first issue is this:
>
> If I put a conditional attribute reference before the document title, it
> gets evaluated properly with 8.5.2, but it does not get evaluated with
> 8.6.6.  If I put it after the document title, it works fine with both.  Is
> this expected behavior?  I've attached a small asciidoc source file that
> demonstrates the behavior.  I build with "asciidoc -v
> early-conditional-attribute.txt" on both versions; with 8.5.2 all attributes
> get the expected values, but with 8.6.6 {earlyconditionalattribute} expands
> to the empty string.

Yes, because basebackend hasn't been defined at that time.  This is a
change in the 8.6.2 to allow user definition of the backend (and other
stuff) within the header.

>
>
> My second issue is this:
>
> I guess there's something I don't understand about asciidoc regexes.  I've
> used regexes for about two decades with other tools (perl, python, grep,
> sed, etc, etc), but it's not working as i expect in asciidoc.  I've attached
> another small asciidoc source file that confuses me.  The regex with ".*" at
> both the beginning and end of the regex fails to match.  All the other
> regexes match successfully.  I feel like I'm on crazy pills!  Any ideas what
> I'm doing wrong?

Not sure whats the problem here but I can't test it at the moment.

Cheers
Lex

>
>
> Thanks for your help folks!
>
>
> --
> Sebastian Kuzminsky
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/asciidoc?hl=en.
>

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

Reply via email to