xref: /openbmc/linux/tools/lib/perf/Documentation/manpage-suppress-sp.xsl (revision 8dd06ef34b6e2f41b29fbf5fc1663780f2524285)
1*81de3bf3SJiri Olsa<!-- manpage-suppress-sp.xsl:
2*81de3bf3SJiri Olsa     special settings for manpages rendered from asciidoc+docbook
3*81de3bf3SJiri Olsa     handles erroneous, inline .sp in manpage output of some
4*81de3bf3SJiri Olsa     versions of docbook-xsl -->
5*81de3bf3SJiri Olsa<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6*81de3bf3SJiri Olsa		version="1.0">
7*81de3bf3SJiri Olsa
8*81de3bf3SJiri Olsa<!-- attempt to work around spurious .sp at the tail of the line
9*81de3bf3SJiri Olsa     that some versions of docbook stylesheets seem to add -->
10*81de3bf3SJiri Olsa<xsl:template match="simpara">
11*81de3bf3SJiri Olsa  <xsl:variable name="content">
12*81de3bf3SJiri Olsa    <xsl:apply-templates/>
13*81de3bf3SJiri Olsa  </xsl:variable>
14*81de3bf3SJiri Olsa  <xsl:value-of select="normalize-space($content)"/>
15*81de3bf3SJiri Olsa  <xsl:if test="not(ancestor::authorblurb) and
16*81de3bf3SJiri Olsa                not(ancestor::personblurb)">
17*81de3bf3SJiri Olsa    <xsl:text>&#10;&#10;</xsl:text>
18*81de3bf3SJiri Olsa  </xsl:if>
19*81de3bf3SJiri Olsa</xsl:template>
20*81de3bf3SJiri Olsa
21*81de3bf3SJiri Olsa</xsl:stylesheet>
22