Code

Documentation: asciidoc.conf: fix verse block with block titles
authorChris Johnsen <chris_johnsen@pobox.com>
Fri, 27 Mar 2009 06:44:04 +0000 (01:44 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2009 07:33:20 +0000 (00:33 -0700)
No files use the variant of block-title with verse-block, but
such a case would have generated broken docbook XML (<simpara> is
not allowed inside <para>). This fixes the potential deviation from
valid docbook XML.

Testing done with asciidoc 8.3.1 and docbook-xsl 1.74.0.

Signed-off-by: Chris Johnsen <chris_johnsen@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/asciidoc.conf

index 9963f2da81bd6ecbecbff7397944f46b0858b038..dc76e7f073f23cd911da0b0d0d49b72726576f1a 100644 (file)
@@ -59,8 +59,9 @@ ifdef::doctype-manpage[]
 {title%}<literallayout{id? id="{id}"}>
 {title#}<literallayout>
 |
-</literallayout><simpara></simpara>
+</literallayout>
 {title#}</para></formalpara>
+{title%}<simpara></simpara>
 endif::doctype-manpage[]
 endif::git-asciidoc-no-roff[]
 endif::backend-docbook[]