From: Jonas Fonseca Date: Thu, 30 Oct 2008 10:45:03 +0000 (+0100) Subject: asciidoc: add minor workaround to add an empty line after code blocks X-Git-Tag: v1.6.0.4~28 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b6f84d2c2ff84ac3ef2215b6ea8ee45b6d943cd;p=git.git asciidoc: add minor workaround to add an empty line after code blocks Insert an empty in manpages after code blocks to force and empty line. The problem can be seen on the manpage for the git tutorial, where an example command and the following paragraph is printed with no empty line between them: First, note that you can get documentation for a command such as git log --graph with: $ man git-log It is a good idea to introduce yourself to git [...] Signed-off-by: Jonas Fonseca Signed-off-by: Junio C Hamano --- diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index 40d43b78e..2da867d2f 100644 --- a/Documentation/asciidoc.conf +++ b/Documentation/asciidoc.conf @@ -40,6 +40,26 @@ endif::doctype-manpage[] {title#} endif::docbook-xsl-172[] + +ifdef::docbook-xsl-172[] +ifdef::doctype-manpage[] +# The following two small workarounds insert a simple paragraph after screen +[listingblock] +{title} + +| + +{title#} + +[verseblock] +{title} +{title%} +{title#} +| + +{title#} +endif::doctype-manpage[] +endif::docbook-xsl-172[] endif::backend-docbook[] ifdef::doctype-manpage[]