Merge pull request #851 from Rmys/master
docbook-xsl:rebuild smb.conf.5.xml error
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
Description: use EXSLT "replace" function when available
|
||||||
|
A recursive implementation of string.subst is problematic,
|
||||||
|
long strings with many matches will cause stack overflows.
|
||||||
|
Author: Peter De Wachter <pdewacht@gmail.com>
|
||||||
|
Bug-Debian: https://bugs.debian.org/750593
|
||||||
|
|
||||||
|
--- a/lib/lib.xsl
|
||||||
|
+++ b/lib/lib.xsl
|
||||||
|
@@ -10,7 +10,10 @@
|
||||||
|
This module implements DTD-independent functions
|
||||||
|
|
||||||
|
******************************************************************** -->
|
||||||
|
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
|
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
+ xmlns:str="http://exslt.org/strings"
|
||||||
|
+ exclude-result-prefixes="str"
|
||||||
|
+ version="1.0">
|
||||||
|
|
||||||
|
<xsl:template name="dot.count">
|
||||||
|
<!-- Returns the number of "." characters in a string -->
|
||||||
|
@@ -56,6 +59,9 @@
|
||||||
|
<xsl:param name="replacement"/>
|
||||||
|
|
||||||
|
<xsl:choose>
|
||||||
|
+ <xsl:when test="function-available('str:replace')">
|
||||||
|
+ <xsl:value-of select="str:replace($string, string($target), string($replacement))"/>
|
||||||
|
+ </xsl:when>
|
||||||
|
<xsl:when test="contains($string, $target)">
|
||||||
|
<xsl:variable name="rest">
|
||||||
|
<xsl:call-template name="string.subst">
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
<Patch level="1">docbook-xsl-newmethods.patch</Patch>
|
<Patch level="1">docbook-xsl-newmethods.patch</Patch>
|
||||||
<Patch level="1">docbook-xsl-non-constant-expressions.patch</Patch>
|
<Patch level="1">docbook-xsl-non-constant-expressions.patch</Patch>
|
||||||
<Patch level="1">docbook-xsl-list-item-body.patch</Patch>
|
<Patch level="1">docbook-xsl-list-item-body.patch</Patch>
|
||||||
|
<Patch level="1">nonrecursive-string-subst.patch</Patch>
|
||||||
<!-- <Patch level="1">docbook-xsl-mandir.patch</Patch> -->
|
<!-- <Patch level="1">docbook-xsl-mandir.patch</Patch> -->
|
||||||
</Patches>
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
@@ -40,6 +41,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="5">
|
||||||
|
<Date>2019-01-13</Date>
|
||||||
|
<Version>1.79.1</Version>
|
||||||
|
<Comment>Rebuild.</Comment>
|
||||||
|
<Name>Ertuğrul Erata</Name>
|
||||||
|
<Email>ertugrulerata@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="4">
|
<Update release="4">
|
||||||
<Date>2018-07-17</Date>
|
<Date>2018-07-17</Date>
|
||||||
<Version>1.79.1</Version>
|
<Version>1.79.1</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user