@matheusbsbs / matheus-bagliano / commits / 9b6f84d2c2
Fork 0

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>

Jonas Fonseca committed Oct 30, 2008 at 11:45 UTC 9b6f84d2c2ff84ac3ef2215b6ea8ee45b6d943cd
1 file changed +20
Documentation/asciidoc.conf
+20
@@ -40,6 +40,26 @@ endif::doctype-manpage[]
40 </literallayout>
41 {title#}</example>
42 endif::docbook-xsl-172[]
43 +
44 +ifdef::docbook-xsl-172[]
45 +ifdef::doctype-manpage[]
46 +# The following two small workarounds insert a simple paragraph after screen
47 +[listingblock]
48 +<example><title>{title}</title>
49 +<screen>
50 +|
51 +</screen><simpara></simpara>
52 +{title#}</example>
53 +
54 +[verseblock]
55 +<formalpara{id? id="{id}"}><title>{title}</title><para>
56 +{title%}<literallayout{id? id="{id}"}>
57 +{title#}<literallayout>
58 +|
59 +</literallayout><simpara></simpara>
60 +{title#}</para></formalpara>
61 +endif::doctype-manpage[]
62 +endif::docbook-xsl-172[]
63 endif::backend-docbook[]
64
65 ifdef::doctype-manpage[]