diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index 0084d79..f5e6f57 100644 --- a/Documentation/asciidoc.conf +++ b/Documentation/asciidoc.conf @@ -4,14 +4,23 @@ # # Note, {0} is the manpage section, while {target} is the command. # -# Show guilt link as: (
); if section is defined, else just show -# the command. +# Show guilt link as: (
); if section is defined, else just +# show the command. + +[macros] +(?su)[\\]?(?Plinkguilt):(?P\S*?)\[(?P.*?)\]= [attributes] -caret=^ +asterisk=* +plus=+ +caret=^ startsb=[ endsb=] +backslash=\ tilde=~ +apostrophe=' +backtick=` +litdd=-- ifdef::backend-docbook[] [linkguilt-inlinemacro] @@ -21,21 +30,45 @@ ifdef::backend-docbook[] {0#} endif::backend-docbook[] - ifdef::backend-docbook[] +ifndef::guilt-asciidoc-no-roff[] # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this. +# v1.72 breaks with this because it replaces dots not in roff requests. [listingblock] {title} +ifdef::doctype-manpage[] + .ft C +endif::doctype-manpage[] | +ifdef::doctype-manpage[] + .ft +endif::doctype-manpage[] {title#} -endif::backend-docbook[] +endif::guilt-asciidoc-no-roff[] -ifdef::backend-xhtml11[] -[linkguilt-inlinemacro] -{target}{0?({0})} -endif::backend-xhtml11[] +ifdef::guilt-asciidoc-no-roff[] +ifdef::doctype-manpage[] +# The following two small workarounds insert a simple paragraph after screen +[listingblock] +{title} + +| + +{title#} + +[verseblock] +{title} +{title%} +{title#} +| + +{title#} +{title%} +endif::doctype-manpage[] +endif::guilt-asciidoc-no-roff[] +endif::backend-docbook[] ifdef::doctype-manpage[] ifdef::backend-docbook[] @@ -55,3 +88,8 @@ template::[header-declarations] endif::backend-docbook[] endif::doctype-manpage[] + +ifdef::backend-xhtml11[] +[linkguilt-inlinemacro] +{target}{0?({0})} +endif::backend-xhtml11[]