Lex, you are correct the litdd attribute is not defined at the time the header is parsed. The reason for this is that the local asciidoc.conf (the one in the same directory as the source file) is not loaded until after the header is parsed (only the system wide asciidoc.conf and the one in the user's $HOME/.asciidoc directory is loaded prior to parsing the header). The reason for this is that the local asciidoc.conf file will often contain backend related inclusions (which is the case with GIT's asciidoc.conf) and the backend is not guaranteed to be known until the header is parsed.

The only way round this that I can see it to load the attributes and along with specialcharacters and titles sections (but nothing else) from the local asciidoc.conf file prior to parsing the header.
I've committed a patch the implements this change and which should fix the 
problem:
http://code.google.com/p/asciidoc/source/detail?r=02c8e59ce1b67ba91c7c77d1ab59c3a4524def33

Teck Choon Giam, could you please test the patch and report back.


Cheers, Stuart


On 17/10/10 00:43, Lex Trotman wrote:
On 16 October 2010 21:40, Teck Choon Giam<[email protected]>  wrote:
There is a change in 8.6.2 that delayed loading some config files
until after the header, meaning that {litdd} may not be defined.

Could you try 8.6.1?  If it works the above change may have to be
reverted by the asciidoc7compatible option.

Yes, asciidoc 8.6.1 works with/without ASCIIDOC8 being set.  Same
behaviour/result for asciidoc 8.4.5.

So I doubt it is asciidoc7compatible option as I can compile without
ASCIIDOC8 being set.

Since this change breaks backward compatibility it may bite other
users as well, maybe the change will have to be off by default and be
enabled by an option.
Either way its should be turned off by the asciidoc7compatible option.

What do you think Stewart?

Cheers
Lex


Thanks.

Kindest regards,
Giam Teck Choon

--
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