manpage-bold-literal.xsl 578 B

123456789101112131415161718
  1. <!-- manpage-bold-literal.xsl:
  2. special formatting for manpages rendered from asciidoc+docbook -->
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. version="1.0">
  5. <!-- render literal text as bold (instead of plain or monospace);
  6. this makes literal text easier to distinguish in manpages
  7. viewed on a tty -->
  8. <xsl:template match="literal">
  9. <xsl:value-of select="$git.docbook.backslash"/>
  10. <xsl:text>fB</xsl:text>
  11. <xsl:apply-templates/>
  12. <xsl:value-of select="$git.docbook.backslash"/>
  13. <xsl:text>fR</xsl:text>
  14. </xsl:template>
  15. </xsl:stylesheet>