Re: Should attribute expansion be suppressed in the 'Name' section of a manpage document?
Posted by
mojavelinux on
Apr 08, 2021; 8:15am
URL: https://discuss.asciidoctor.org/Should-attribute-expansion-be-suppressed-in-the-Name-section-of-a-manpage-document-tp8583p8584.html
On Wed, Apr 7, 2021 at 8:40 PM oddhack [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Is there a reason attribute expansion is performed differently in the 'Name' section of the following document depending on whether it's processed with default or 'manpage' document type?
= attribs(3)
:value: fnord
== Name
Name - value is {value}
== Synopsis
Synopsis - value is {value}
When run through 'asciidoctor -b html5 -d manpage', the output of the 'Name' section looks like:
Name - value is {value}
When run through 'asciidoctor -b html5', the output looks (as intended) like:
Name - value is fnord
I don't see any obvious reason in Generate Manual Pages from AsciiDoc that attribute expansion would not be performed in the first case - am I missing something documented? If not, is there a workaround?
asciidoctor 2.0.12, Ruby 2.5.3
--