]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #2412738 (apostrophe escaping) by applying the submitted patch.
authorMauritz Jeanson <mj@johanneberg.com>
Sat, 14 Aug 2010 07:21:25 +0000 (07:21 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sat, 14 Aug 2010 07:21:25 +0000 (07:21 +0000)
xsl/manpages/docbook.xsl
xsl/manpages/other.xsl

index e65e7cb9784bc5773d36e71854de5572102aedc5..6f39f7cfe6238866b174d15d9441e512c9375c45 100644 (file)
       <!-- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
       <!-- * (re)define some macros -->
       <!-- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+      <xsl:call-template name="define.portability.macros"/>
       <xsl:if test="not($man.output.better.ps.enabled = 0)">
         <xsl:call-template name="define.macros"/>
       </xsl:if>
index 4ae602d4dfe7428fbbebabaf8e8b118cb3af4005..37b75032c6a10eb677bcdfd6667a578dae606b3c 100644 (file)
@@ -223,7 +223,7 @@ manvolnum
   <xsl:call-template name="string.subst">
     <xsl:with-param name="string" select="$content"/>
     <xsl:with-param name="target">'</xsl:with-param>
-    <xsl:with-param name="replacement">\'</xsl:with-param>
+    <xsl:with-param name="replacement">\*(Aq</xsl:with-param>
   </xsl:call-template>
 </xsl:template>
 
@@ -658,6 +658,24 @@ manvolnum
 
   <!-- ============================================================== -->
 
+  <!-- There is some stuff, that is not portable between groff/troff. -->
+  <xsl:template name="define.portability.macros">
+    <xsl:text>.\" -----------------------------------------------------------------&#10;</xsl:text>
+    <xsl:text>.\" * Define some portability stuff&#10;</xsl:text>
+    <xsl:text>.\" -----------------------------------------------------------------&#10;</xsl:text>
+    <xsl:text>.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#10;</xsl:text>
+    <xsl:text>.\" http://bugs.debian.org/507673&#10;</xsl:text>
+    <xsl:text>.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html&#10;</xsl:text>
+    <xsl:text>.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#10;</xsl:text>
+    <xsl:text>&#10;</xsl:text>
+    <xsl:text>.ie \n(.g .ds Aq \(aq</xsl:text>
+    <xsl:text>&#10;</xsl:text>
+    <xsl:text>.el       .ds Aq '</xsl:text>
+    <xsl:text>&#10;</xsl:text>
+  </xsl:template>
+
+  <!-- ============================================================== -->
+
   <xsl:template name="define.macros">
     <xsl:text>.\" -----------------------------------------------------------------&#10;</xsl:text>
     <xsl:text>.\" * (re)Define some macros&#10;</xsl:text>