On Sat, 10 Dec 2011, Dag Wieers wrote:

Now I am going to start implementing the new comment/annotation proposal. Using a comment-block instead of a listingblock !

I get the following error I do not understand:

    asciidoc: WARNING: test-odt.txt: line 257: missing section: [comment]

While I am using the following in odt.conf:

    [blockdef-comment]
    delimiter=^/{4,}$
    options=skip
    posattrs=style
    
annotation-style=template="annotationblock",options="sectionbody",posattrs=["style","name","date"]
    comment-style=template="commentblock",options="sectionbody"

    [annotationblock]
    {hideannotations%}<text:p 
text:style-name="empty"><office:annotation><dc:creator>{name=AsciiDoc}</dc:creator><dc:date>{date=}</dc:date><text:p>|</text:p></office:annotation></text:p>

    [commentblock]
    {showcomments#}<text:p text:style-name="comment">|</text:p>

This would allow for:

    == Comments and annotations
    // This is a comment

    [annotation,dag,2011-12-03]
    ////
    This is an example annotation that should be a proper annotation in
    LibreOffice or OpenOffice.
    ////

    [annotation]
    ////
    This is an anonymous annotation.
    ////

    [comment]
    ////
    This is a block comment.
    ////

Line 257 is the line containing "[comment]". If I add a section:

    [comment]
    DUH!

to my odt.conf, DUH! is only printed once for that chapter (even though more than one block was specified). I do not understand this behavior. It seems different than the other blocks.

Help is required !
--
-- 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.

Reply via email to