From: Junio C Hamano <junkio@cox•net>
To: Francis Daly <francis@daoine•org>
Cc: git@vger•kernel.org
Subject: Re: [PATCH] Tweak asciidoc output to work with broken docbook-xsl
Date: Sun, 05 Mar 2006 16:53:11 -0800 [thread overview]
Message-ID: <7vr75gcs20.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20060305231336.GA21797@craic.sysops.org> (Francis Daly's message of "Sun, 5 Mar 2006 23:13:36 +0000")
Francis Daly <francis@daoine•org> writes:
> 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>
next prev parent reply other threads:[~2006-03-06 0:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-05 23:13 [PATCH] Tweak asciidoc output to work with broken docbook-xsl Francis Daly
2006-03-06 0:53 ` Junio C Hamano [this message]
2006-03-06 1:09 ` Francis Daly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vr75gcs20.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox$(echo .)net \
--cc=francis@daoine$(echo .)org \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox