diff options
author | 2007-01-10 03:44:27 +0000 | |
---|---|---|
committer | 2007-01-10 03:44:27 +0000 | |
commit | b6bc2e5e23b9f077f1cafdf6c53f301261ac5541 (patch) | |
tree | bea1545ef4723fece5048412ea594159677fc33b /man/custom.xsl | |
parent | cut usage and insert note about required docbook packages (diff) | |
download | pax-utils-b6bc2e5e23b9f077f1cafdf6c53f301261ac5541.tar.gz pax-utils-b6bc2e5e23b9f077f1cafdf6c53f301261ac5541.tar.bz2 pax-utils-b6bc2e5e23b9f077f1cafdf6c53f301261ac5541.zip |
add custom xsl fragment to eat newlines in linsts
Diffstat (limited to 'man/custom.xsl')
-rw-r--r-- | man/custom.xsl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/man/custom.xsl b/man/custom.xsl new file mode 100644 index 0000000..bf01b14 --- /dev/null +++ b/man/custom.xsl @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<xsl:stylesheet +xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <xsl:import + href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" /> + + <xsl:template match="itemizedlist/listitem"> + <xsl:text>• </xsl:text> + <xsl:apply-templates/> + <xsl:if test="following-sibling::listitem"> + <xsl:text>.sp -1 </xsl:text> + <xsl:text>.TP</xsl:text> + <xsl:if test="not($list-indent = '')"> + <xsl:text> </xsl:text> + <xsl:value-of select="$list-indent"/> + </xsl:if> + <xsl:text> </xsl:text> + </xsl:if> + </xsl:template> +</xsl:stylesheet> |