On 13/12/11 11:51, Dag Wieers wrote:
On Mon, 12 Dec 2011, Stuart Rackham wrote:
On 12/12/11 11:03, Dag Wieers wrote:
On Sun, 11 Dec 2011, Dag Wieers wrote:
> On Sun, 11 Dec 2011, Stuart Rackham wrote:
> > Can we however still allow using comment blocks for ODF ? E.g. by making
> the
> special 'comment' behaviour optional (but default as is now). I really >
want to
> use comment blocks, rather than listing blocks in this case.
Still relevant :)
On the face of it, it seems reasonable that comment blocks should consume
preceding attribute lists just like other delimited blocks. But I've just
discovered that it introduces backward incompatibility and fails the following
example from the test suite (from tests/data/testcases.txt):
[[comment_block]]
.Block title
/////////////////////////////////////////////////////////////////////
Delimited comment block does not consume titles or attributes.
/////////////////////////////////////////////////////////////////////
Lorum ipsum.
Both the block title and the comment_block anchor attributes will be consumed
by the comment block which is neither the intended or the obvious behavior.
Right, but that should not be a problem if the old behavior is possible by the
default 'options'.
In that case, only annotation-style would show the new behavior. That's what I
meant before with: making the old behavior optional (but default).
Ok, there is no 'comment' option but there is a 'skip' option. So change the
hardwired "skip attributes list if comment block syntax" to "skip if 'skip'
option is set".
Problem is that there's a Catch 22: You need to read and process the attribute
list to determine if you should read and process the attribute list.
So needed to process attributes list and then un-process it if there is a 'skip'
option, quite tricky.
It's in the trunk, hope it doesn't introduce any regressions:
http://code.google.com/p/asciidoc/source/detail?r=320117a96e0ac6ae260a934ec74c967dbc5a5686
Cheers, Stuart
--
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.