git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Tweak asciidoc output to work with broken docbook-xsl

From
Junio C Hamano <junkio@cox.net>
Date
Mar 6, 2006, 00:53 UTC
Message-ID
<7vr75gcs20.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060305231336.GA21797@craic.sysops.org>
Francis Daly <francis@daoine.org> writes:
Show 7 quoted lines
> 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.

Have you tested html generation side? With 1.68 I seem to be getting an disaster.

How about this instead?
---
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index fa0877d..7ce7151 100644
--- a/Documentation/asciidoc.conf
+++ b/Documentation/asciidoc.conf
@@ -18,6 +18,16 @@ ifdef::backend-docbook[]
 {0#</citerefentry>}
 endif::backend-docbook[]
 
+ifdef::backend-docbook[]
+# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
+[listingblock]
+<example><title>{title}</title>
+<literallayout>
+|
+</literallayout>
+{title#}</example>
+endif::backend-docbook[]
+
 ifdef::backend-xhtml11[]
 [gitlink-inlinemacro]
 <a href="{target}.html">{target}{0?({0})}</a>
Previous: Francis DalyNext: Francis Daly
Message 2 of 3 in “Tweak asciidoc output to work with broken docbook-xsl”
  1. Tweak asciidoc output to work with broken docbook-xslFrancis Daly, Mar 5, 2006
  2. Junio C HamanoMar 6, 2006
  3. Francis DalyMar 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.