[Po4a-devel] macros in AsciiDoc

D. Barbier bouzim at gmail.com
Fri Oct 12 21:35:09 UTC 2012


On 2012/10/12 Anders Nawroth wrote:
> Hi!
>
> I think it was already mentioned in some thread, but I couldn't find it ...
>
> AsciiDoc block macros need special treatment.
> They can appear inside a paragraph, but still need to be on their own line
> to be parsed correctly.
>
> For example (from the AsciiDoc User guide):
> ifdef::revnumber[]
> Version number 42
> endif::revnumber[]
>
> That will work, but po4a will alter it into:
>
> ifdef::revnumber[] Version number 42 endif::revnumber[]
>
> which will not be parsed correctly any more.
>
> Maybe paragraphs containing block macros could be
> marked as no-wrap?

Hello Anders,

This is already fixed in the repository I am using until po4a 0.43 is released:
  https://github.com/dbarbier/po4a
(in the asciidoc branch).

Denis



More information about the Po4a-devel mailing list