Browse Source
This allows manpages viewed on a tty to render inline literal text in a manner that is distinct from the surrounding text. The initial implementation (pre-mailing-list) of this patch included a conditional variant of the XSLT code in manpage-base.xsl and use xmlto's --stringparam option to optionally enable the functionality. It turns out that --stringparam is broken in all versions of xmlto except for the pre-release, SVN version. Since xmlto is a shell script the patch to fix it is simple enough, but I instead opted to use xmlto's "module" functionality. 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>maint
Chris Johnsen
16 years ago
committed by
Junio C Hamano
2 changed files with 22 additions and 1 deletions
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
<!-- manpage-bold-literal.xsl: |
||||
special formatting for manpages rendered from asciidoc+docbook --> |
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
||||
version="1.0"> |
||||
|
||||
<!-- render literal text as bold (instead of plain or monospace); |
||||
this makes literal text easier to distinguish in manpages |
||||
viewed on a tty --> |
||||
<xsl:template match="literal"> |
||||
<xsl:value-of select="$git.docbook.backslash"/> |
||||
<xsl:text>fB</xsl:text> |
||||
<xsl:apply-templates/> |
||||
<xsl:value-of select="$git.docbook.backslash"/> |
||||
<xsl:text>fR</xsl:text> |
||||
</xsl:template> |
||||
|
||||
</xsl:stylesheet> |
Loading…
Reference in new issue