summaryrefslogtreecommitdiff
path: root/Documentation/asciidoc.conf
diff options
context:
space:
mode:
authorJonas Fonseca <fonseca@diku.dk>2008-10-30 10:45:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-10-31 06:41:28 (GMT)
commit9b6f84d2c2ff84ac3ef2215b6ea8ee45b6d943cd (patch)
treeb62b3d13ed75a65b781df816a146701c7473990f /Documentation/asciidoc.conf
parentd258b25887f763db96c20d4ec805ae685f55bdd1 (diff)
downloadgit-9b6f84d2c2ff84ac3ef2215b6ea8ee45b6d943cd.zip
git-9b6f84d2c2ff84ac3ef2215b6ea8ee45b6d943cd.tar.gz
git-9b6f84d2c2ff84ac3ef2215b6ea8ee45b6d943cd.tar.bz2
asciidoc: add minor workaround to add an empty line after code blocks
Insert an empty <simpara> 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 <fonseca@diku.dk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/asciidoc.conf')
-rw-r--r--Documentation/asciidoc.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index 40d43b7..2da867d 100644
--- a/Documentation/asciidoc.conf
+++ b/Documentation/asciidoc.conf
@@ -40,6 +40,26 @@ endif::doctype-manpage[]
</literallayout>
{title#}</example>
endif::docbook-xsl-172[]
+
+ifdef::docbook-xsl-172[]
+ifdef::doctype-manpage[]
+# The following two small workarounds insert a simple paragraph after screen
+[listingblock]
+<example><title>{title}</title>
+<screen>
+|
+</screen><simpara></simpara>
+{title#}</example>
+
+[verseblock]
+<formalpara{id? id="{id}"}><title>{title}</title><para>
+{title%}<literallayout{id? id="{id}"}>
+{title#}<literallayout>
+|
+</literallayout><simpara></simpara>
+{title#}</para></formalpara>
+endif::doctype-manpage[]
+endif::docbook-xsl-172[]
endif::backend-docbook[]
ifdef::doctype-manpage[]