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.
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?
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.
:Early Conditional Attribute: {basebackend@html:Conditional attributes work
before the document title:Conditional attributes above the document title seem
to be ignored!}
:Early Attribute: Regular attributes work before the document title!
= I am a Document Title!
basebackend expands to: {basebackend}
earlyconditionalattribute expands to: {earlyconditionalattribute}
earlyattribute expands to: {earlyattribute}
:Later Conditional Attribute: {basebackend@html:Conditional attributes work
after the document title:Conditional attributes after the document title seem
to be ignored too!}
laterconditionalattribute expands to: {laterconditionalattribute}
= I don't understand asciidoc regexes!
:My Attribute: This is the value of My Attribute
myattribute expands to: {myattribute}
full-string matching: {myattribute@This is the value of My
Attribute:works:fails}
dot-star at the start: {myattribute@.*value of My Attribute:works:fails}
dot-star at the end: {myattribute@This is the value of My.*:works:fails}
dot-star at the start and the end: {myattribute@.*value of My.*:works:fails}
dot-star in the middle: {myattribute@This is the .* of My Attribute:works:fails}