author | Francis Daly <francis@daoine.org> | |
Sun, 5 Mar 2006 23:13:36 +0000 (23:13 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 6 Mar 2006 06:38:12 +0000 (22:38 -0800) | ||
commit | e920b5655719bee9c98a3d7d3b05ac6e8cf9d176 | |
tree | c3e1e0f93e33a0331a44fff615a451419b9b9555 | tree | snapshot |
parent | ce5b6e711148d035478fcb18773a0abcef302d7e | commit | diff |
Tweak asciidoc output to work with broken docbook-xsl
docbook-xsl v1.68 incorrectly converts "<screen>" from docbook to
manpage by not rendering it verbatim. v1.69 handles it correctly, but
not many current popular distributions ship with it.
asciidoc by default converts "listingblock" to "<screen>". This change
causes asciidoc in git to convert "listingblock" to "<literallayout>", which
both old and new docbook-xsl handle correctly.
The difference can be seen in any manpage which includes a multi-line
example, such as git-branch.
[jc: the original patch was an disaster for html backends, so I made
it apply only to docbook backends. ]
Signed-off-by: Junio C Hamano <junkio@cox.net>
docbook-xsl v1.68 incorrectly converts "<screen>" from docbook to
manpage by not rendering it verbatim. v1.69 handles it correctly, but
not many current popular distributions ship with it.
asciidoc by default converts "listingblock" to "<screen>". This change
causes asciidoc in git to convert "listingblock" to "<literallayout>", which
both old and new docbook-xsl handle correctly.
The difference can be seen in any manpage which includes a multi-line
example, such as git-branch.
[jc: the original patch was an disaster for html backends, so I made
it apply only to docbook backends. ]
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/asciidoc.conf | diff | blob | history |