On Sun, 11 Dec 2011, Stuart Rackham wrote:
On 10/12/11 21:06, Dag Wieers wrote:
On Sat, 10 Dec 2011, Stuart Rackham wrote:
> On 10/12/11 16:07, Lex Trotman wrote:
>
> > Unfortunately I think there is some internal hardcoded processing of
> > blocks called "comment" in asciidoc.py. The following works fine:
>
> Correct! The devil is always in the details. asciidoc does not consume
> attribute lists that precede comments. I'm working on the complete
> annotation
> block comment patch, but here's the diff:
Even with this, it doesn't work. I tried this as well. (Looking for
'comment'
was quite easy, there were two conditional statements I removed to make
comments
in line with other blocks. To no avail :-/
I've attached a patch which works with the xhtml11 backend.
Thanks.
For such a small addition on top of the existing comments mechanism I'm
getting that uneasy feeling that the cure is worse than the disease. Outside
of ODF there's never been a request or a use-case for a displayable block
comments, so for now I'm not adding it to the default AsciiDoc syntax. I
think the best course of action is to go back to the original annotation
listingblock style in odf.conf. Source containing annotations will be ODF
specific but they won't break other backends -- you'll get a 'missing style'
warning but the annotation will be displayed in a listing block.
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.
However, I still cannot make it work. With the changes you suggested, the
comment blocks are still not visible. See asciidoc-odf odt.conf and
examples/test-odt.txt. Only the inline comment is being outputted.
--
-- dag wieers, [email protected], http://dag.wieers.com/
-- dagit linux solutions, [email protected], http://dagit.net/
[Any errors in spelling, tact or fact are transmission errors]
--
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.