Hi Stuart, Testing has shown two problems as below, source and the newsworthy part of the output attached (gazillion style defs left off :).
On Tue, Nov 8, 2011 at 7:35 PM, Stuart Rackham <[email protected]> wrote: > I've added global 'blockname' attribute that is dynamically updated to the > current block short name. Applies to delimited blocks, lists and > tables. > It needs to be the containing template, not the blockdef. Otherwise we have no way of differentiating between examples and admonitions as far as I can see. That means that admonition paragraphs are styled as example not admonition. If it used the template it would work, eg for [exampleblock] {blockname} becomes "example", for [admonitionblock] it becomes "admonition" etc. Or some other method of differentiating of course :) > http://code.google.com/p/asciidoc/source/detail?r=08d77b0075c5a4075d3167850afc4b3a41cc6fdd > > To see what's going on run asciidoc with a block trace e.g. > > asciidoc -a trace=block t.txt > > The ``short name'' is the text following the last dash in the conf > file definition section name e.g. the quote delimited block is defined > in the [blockdef-quote] section so the short name is 'quote'. The > short name for tables is 'table'. > > So hopefully templates like: > > <text:p > text:style-name="{style}" > text:style-name="{style%}{blockname}-paragraph" >> > | > </text:p> > For paragraphs {style} is always defined to be "normal", never undefined, so the above doesn't work. This does, <text:p text:style-name="{style$normal::{style}}" text:style-name="{style$normal:}{blockname}-paragraph" >|</text:p> but doing regex checks twice on every para in a long document is kinda expensive. Any thoughts. Cheers Lex -- 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.
test ==== sect 1 ------ blah [quote, by me] ____ para 1 para 2 ____ .plain example ============= para 1 para 2 ============= [NOTE] ========= noted ========= [NOTE] ======== blah etc ======== [IMPORTANT] ========== para 1 para 2 ==========
output
Description: Binary data
