]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix another bunch of samba-docs bugs. Use <literal> to escape slashes with text
authorAlexander Bokovoy <ab@samba.org>
Wed, 6 Jun 2007 15:36:50 +0000 (15:36 +0000)
committerGerald W. Carter <jerry@samba.org>
Wed, 23 Apr 2008 13:47:33 +0000 (08:47 -0500)
docs/manpages-3/smb.conf.5.xml
docs/xslt/man.xsl

index 52780a04bef8ac4808bbc4674432fd5ff0396970..83fff41f809440329ec31f49e1c31e43233f2833 100644 (file)
@@ -55,7 +55,7 @@
        </para>
 
        <para>
-       Any line ending in a <quote>\\</quote> is continued on the next line in the customary UNIX fashion.
+       Any line ending in a <quote><literal>\</literal></quote> is continued on the next line in the customary UNIX fashion.
        </para>
 
        <para>
@@ -677,7 +677,7 @@ chmod 1770 /usr/local/samba/lib/usershares
                <listitem><para>
                If the client has passed a username/password pair and that username/password pair is validated by the UNIX 
                system's password programs, the connection is made as that username. This includes the
-               <literal>\\server\service%<replaceable>username</replaceable></literal> method of passing a username.
+               <literal>\\server\service</literal>%<replaceable>username</replaceable> method of passing a username.
                </para></listitem>
 
                <listitem><para>
index 38d99f9840326c18cc9412c4864e966d14edde00..c810e2295bddfc07413c3ff4ece774379cd0d55c 100644 (file)
@@ -9,6 +9,27 @@
 <xsl:param name="chunk.first.sections" select="1"/>
 <xsl:param name="use.id.as.filename" select="1"/>
 
+<xsl:template name="string-subst">
+  <xsl:param name="content" select="''"/>
+  <xsl:param name="replace" select="''"/>
+  <xsl:param name="with" select="''"/>
+  <xsl:choose>
+    <xsl:when test="not(contains($content,$replace))">
+      <xsl:value-of select="$content"/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:value-of select="substring-before($content,$replace)"/>
+      <xsl:value-of select="$with"/>
+      <xsl:call-template name="string-subst">
+        <xsl:with-param name="content"
+             select="substring-after($content,$replace)"/>
+        <xsl:with-param name="replace" select="$replace"/>
+        <xsl:with-param name="with" select="$with"/>
+      </xsl:call-template>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
 <!-- 
     Our ulink stylesheet omits @url part if content was specified
 -->
   <xsl:text>\fR</xsl:text>
 </xsl:template>
 
+<xsl:template match="//literal">
+<xsl:variable name="foo">
+  <xsl:apply-templates />
+</xsl:variable>
+  <xsl:call-template name="string-subst">
+    <xsl:with-param name="content" select="$foo" />
+    <xsl:with-param name="replace" select="'\'" />
+    <xsl:with-param name="with" select="'\\'" />
+  </xsl:call-template>
+</xsl:template>
+
+<xsl:template match="itemizedlist/listitem">
+  <xsl:text>\(bu&#10;</xsl:text>
+  <xsl:apply-templates/>
+  <xsl:if test="following-sibling::listitem">
+    <xsl:text>.TP</xsl:text> 
+    <xsl:if test="not($list-indent = '')">
+      <xsl:text> </xsl:text>
+      <xsl:value-of select="$list-indent"/>
+    </xsl:if>
+    <xsl:text>&#10;</xsl:text>
+  </xsl:if>
+</xsl:template>
+
+
 <xsl:template match="para|simpara|remark" mode="list">
   <xsl:variable name="foo">
     <xsl:apply-templates/>