]> granicus.if.org Git - docbook-dsssl/commitdiff
Escape text() nodes while also in no.anchor.mode for links.
authorBob Stayton <bobs@sagehill.net>
Wed, 8 Jan 2014 18:56:30 +0000 (18:56 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 8 Jan 2014 18:56:30 +0000 (18:56 +0000)
Fixes bug #1322.

xsl/manpages/other.xsl

index b38ebe2f9db6dad0c918eb83f071b3e3564022ca..3fe656c8eb18f0b671bd24c280fe75c9ef58be7d 100644 (file)
@@ -164,6 +164,14 @@ manvolnum
   </xsl:call-template>
 </xsl:template>
 
+<xsl:template match="//refentry//text()" mode="no.anchor.mode">
+  <xsl:call-template name="escape.roff.specials">
+    <xsl:with-param name="content">
+      <xsl:value-of select="."/>
+    </xsl:with-param>
+  </xsl:call-template>
+</xsl:template>
+
 <xsl:template name="escape.roff.specials">
   <xsl:param name="content"/>
   <xsl:call-template name="convert.nobreak-space">