diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-06-26 08:03:53 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-06-26 08:05:14 -0400 |
commit | 909f413d3c572baadf9b13e36e1e90beba42af86 (patch) | |
tree | ac2c1caf2fbe7545482dc835461a9233fe590cd3 /man/custom-man.xsl | |
parent | 3b05b8b3b503caf525fa72440a3f9f4bae75268b (diff) |
man: always supply quotes around literals
When manpages are displayed on a terminal, <literal>s are indistinguishable
from surrounding text. Add quotes everywhere, remove duplicate quotes,
and tweak a few lists for consistent formatting.
https://bugzilla.redhat.com/show_bug.cgi?id=874631
Diffstat (limited to 'man/custom-man.xsl')
-rw-r--r-- | man/custom-man.xsl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/man/custom-man.xsl b/man/custom-man.xsl index 753e5715e3..e1b8d3618a 100644 --- a/man/custom-man.xsl +++ b/man/custom-man.xsl @@ -52,4 +52,13 @@ <xsl:call-template name="mark.subheading"/> </xsl:template> +<xsl:template match="literal"> + <xsl:if test="$man.hyphenate.computer.inlines = 0"> + <xsl:call-template name="suppress.hyphenation"/> + </xsl:if> + <xsl:text>"</xsl:text> + <xsl:call-template name="inline.monoseq"/> + <xsl:text>"</xsl:text> +</xsl:template> + </xsl:stylesheet> |