Hi everyone, I tried to search the list for my problem but could not come up with any topic. If it already exists I apologize for spamming the list and would appreciate any pointers ;)
Ok, my problem: I just realized that default captions for xref: macros do not seem to work. Example: Say I create an anchor like "[[test,default caption]]" or "anchor:test[default caption]". Now, if I am interpreting the manual ( http://www.methods.co.nz/asciidoc/userguide.html#_inline_macros) correctly, this should result in "default caption" being displayed whenever I set a reference to this anchor like "<<test>>" or "xref:test[]" - which simply does not happen. If I override the caption with "<<test,another caption>>" all works as expected. Am I doing something wrong here? FYI, I attached a test file and the corresponding result created using the current asciidoc.py just checked out from Mercurial. If it helps: I am running Ubuntu 12.10 with Python 2.7.3 Thanks for any help :) -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
= Testdocument == Heading 1 [[anchor1-1,Anchor 1-1]] Above this heading, "anchor1-1" is defined as `[[anchor1-1,Anchor 1-1]]`. === Perhaps without spaces? [[anchor1-2,Anchor1-2]] Above this heading, "anchor1-2" is defined as `[[anchor1-2,Anchor1-2]]`, because maybe I can't use spaces in captions? == Some other heading anchor:anchor2-1[Caption for anchor 2-1] Above this heading, "anchor1-2" is defined as `anchor:anchor2-1[Caption for anchor 2-1]`. === Again, without spaces? anchor:anchor2-2[CaptionAnchor2-2] Above this heading, "anchor1-2" is defined as `anchor:anchor2-2[CaptionAnchor2-2]`. == Now the refs * <<anchor1-1>> (`<<anchor1-1>>`), <<anchor1-1,Anchor 1-1>> (`<<anchor1-1,Anchor 1-1>>`) * <<anchor1-2>> (`<<anchor1-2>>`), <<anchor1-2,Anchor 1-2>> (`<<anchor1-2,Anchor 1-2>>`) * xref:anchor2-1[] (`xref:anchor2-1[]`), xref:anchor2-1[Caption for anchor 2-1] (`xref:anchor2-1[Caption for anchor 2-1]`) * xref:anchor2-2[] (`xref:anchor2-2[]`), xref:anchor2-2[Caption Anchor 2-2] (`xref:anchor2-2[Caption Anchor 2-2]`)
<<< text/html; charset=US-ASCII; name=testfile.html: Unrecognized >>>
