From: Junio C Hamano Date: Tue, 23 Jul 2024 23:36:20 GMT Subject: Re: [PATCH 1/3] doc: introduce a synopsis custom paragraph attribute Message-ID: In-Reply-To: <704f0333ef17c0e3596ba7ef7976ba6584345eff.1721774680.git.gitgitgadget@gmail.com> "Jean-Noël Avila via GitGitGadget" writes: > +ifdef::backend-docbook[] > +ifdef::doctype-manpage[] > +[paradef-default] > +#synopsis-style=template="verseparagraph",filter="sed -E 's!<[a-z-]+>!\\0!g' -E 's!([a-z-]+)!\\1!g'" > +synopsis-style=template="verseparagraph",filter="perl -pe 's!([\[\] |()>]|^)([=+a-zA-Z0-9-:+=]+)!\\1\\2!g;s!(<\\;[a-zA-Z0-9-.]+>\\;)!\\1!g'" > +#synopsis-style=template="verseparagraph" This has three candidate definitions, but two are commented out? > +endif::doctype-manpage[] > +endif::backend-docbook[] > + > +ifdef::backend-xhtml11[] > +[paradef-default] > +synopsis-style=template="verseparagraph",filter="perl -pe 's!([\[\] |()>]|^)([+a-zA-Z0-9-:+=]+)!\\1\\2!g;s!(<\\;[a-zA-z0-9-.]+>\\;)!\\1!g'" > +endif::backend-xhtml11[] With this update, do we now assume that anybody who want to format the documentation from source must have a minimally working Perl on their $PATH? It probably is an OK requirement to have.