Jonas Fonseca  committed 7f55cf4

Documentation: Fix man page breakage with DocBook XSL v1.72

From version 1.72 it will replace all dots in roff requests with U+2302
("house" character), and add escaping in output for all instances of dot
that are not in roff requests. This caused the ".ft" hack forcing
monospace font in listingblocks to end up as "\&.ft" and being visible
in the resulting man page.

The fix adds a DOCBOOK_XSL_172 build variable that will disable the
hack. To allow this variable to be defined in config.mak it also moves
build variable handling below the inclusion of config.mak.

Signed-off-by: Jonas Fonseca <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits cb5c49b

Comments (0)

Files changed (3)

File Documentation/Makefile

-ifdef ASCIIDOC8
-ASCIIDOC_EXTRA += -a asciidoc7compatible
 RM ?= rm -f
 DOC_REF = origin/man
 -include ../config.mak.autogen
 -include ../config.mak
+ifdef ASCIIDOC8
+ASCIIDOC_EXTRA += -a asciidoc7compatible
+ifdef DOCBOOK_XSL_172
+ASCIIDOC_EXTRA += -a docbook-xsl-172
 # Please note that there is a minor bug in asciidoc.
 # The version after 6.0.3 _will_ include the patch found here:

File Documentation/asciidoc.conf

 # "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.
 # Define ASCIIDOC8 if you want to format documentation with AsciiDoc 8
+# Define DOCBOOK_XSL_172 if you want to format man pages with DocBook XSL v1.72.
 # Define NO_PERL_MAKEMAKER if you cannot use Makefiles generated by perl's
 # MakeMaker (e.g. using ActiveState under Cygwin).