aboutsummaryrefslogtreecommitdiff
path: root/Documentation/manpage-1.72.xsl
diff options
context:
space:
mode:
authorJonas Fonseca <fonseca@diku.dk>2008-02-04 23:01:20 +0100
committerJunio C Hamano <gitster@pobox.com>2008-02-11 12:51:55 -0800
commitac3593da8f224d32cd4ffbd43ee7a04c732686dc (patch)
tree5044d0e065d104a311bdc222f80dd85a867ac184 /Documentation/manpage-1.72.xsl
parente94a45de42cea90f6fbd313cfabb5dd10d49e03c (diff)
downloadgit-ac3593da8f224d32cd4ffbd43ee7a04c732686dc.tar.gz
git-ac3593da8f224d32cd4ffbd43ee7a04c732686dc.tar.xz
man pages are littered with .ft C and others
Jakub Narebski <jnareb@gmail.com> wrote Sun, Feb 03, 2008: > Junio C Hamano wrote: > > Jakub Narebski <jnareb@gmail.com> writes: > > > > [From] http://thread.gmane.org/gmane.comp.version-control.git/53457/focus=53458 > Julian Phillips: > > Are you using docbook xsl 1.72? There are known problems building the > > manpages with that version. 1.71 works, and 1.73 should work when it get > > released. I was able to solve this problem with this patch, which adds a XSL file used specifically for DOCBOOK_XSL_172=YesPlease and where dots and backslashes are escaped properly so they won't be substituted to the wrong thing further down the "DocBook XSL pipeline". Doing the escaping in the existing callout.xsl breaks v1.70.1. Hopefully v1.73 will end this part of the manpage nightmare. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/manpage-1.72.xsl')
-rw-r--r--Documentation/manpage-1.72.xsl17
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/manpage-1.72.xsl b/Documentation/manpage-1.72.xsl
new file mode 100644
index 000000000..fe3cd72d6
--- /dev/null
+++ b/Documentation/manpage-1.72.xsl
@@ -0,0 +1,17 @@
+<!-- callout.xsl: converts asciidoc callouts to man page format -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:template match="co">
+ <xsl:value-of select="concat('&#x2593;fB(',substring-after(@id,'-'),')&#x2593;fR')"/>
+</xsl:template>
+<xsl:template match="calloutlist">
+ <xsl:text>&#x2302;sp&#10;</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>&#10;</xsl:text>
+</xsl:template>
+<xsl:template match="callout">
+ <xsl:value-of select="concat('&#x2593;fB',substring-after(@arearefs,'-'),'. &#x2593;fR')"/>
+ <xsl:apply-templates/>
+ <xsl:text>&#x2302;br&#10;</xsl:text>
+</xsl:template>
+
+</xsl:stylesheet>