]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: remove unused wrapstring.xsl file
authorPavel Hrdina <phrdina@redhat.com>
Fri, 5 Jun 2020 20:36:39 +0000 (22:36 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 10 Jul 2020 07:40:11 +0000 (09:40 +0200)
Commit <d672551816e106f2ce8a6a04658691db96435fb5> removed last usage of
this file so drop it as well.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/Makefile.am
docs/wrapstring.xsl [deleted file]

index c33ae8afb1315d2461ae6ad62dfa07cdbb2421a4..07a7d7a369c4803de30a17f26d48cb7dd74d5091 100644 (file)
@@ -358,7 +358,6 @@ schema_DATA = $(wildcard $(srcdir)/schemas/*.rng)
 
 EXTRA_DIST= \
   site.xsl subsite.xsl newapi.xsl page.xsl \
-  wrapstring.xsl \
   $(dot_html_in) $(dot_rst) $(apipng) \
   $(fig) $(assets) \
   $(javascript) $(logofiles) \
diff --git a/docs/wrapstring.xsl b/docs/wrapstring.xsl
deleted file mode 100644 (file)
index b468a70..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<!-- based on http://plasmasturm.org/log/xslwordwrap/ -->
-<!-- Copyright 2010 Aristotle Pagaltzis; under the MIT licence -->
-<!-- http://www.opensource.org/licenses/mit-license.php -->
-<xsl:template name="wrap-string">
-  <xsl:param name="str" />
-  <xsl:param name="wrap-col" />
-  <xsl:param name="break-mark" />
-  <xsl:param name="pos" select="0" />
-  <xsl:choose>
-    <xsl:when test="contains( $str, ' ' )">
-      <xsl:variable name="first-word" select="substring-before( $str, ' ' )" />
-      <xsl:variable name="pos-now" select="$pos + 1 + string-length( $first-word )" />
-      <xsl:choose>
-        <xsl:when test="$pos > 0 and $pos-now >= $wrap-col">
-          <xsl:copy-of select="$break-mark" />
-          <xsl:call-template name="wrap-string">
-            <xsl:with-param name="str" select="$str" />
-            <xsl:with-param name="wrap-col" select="$wrap-col" />
-            <xsl:with-param name="break-mark" select="$break-mark" />
-            <xsl:with-param name="pos" select="0" />
-          </xsl:call-template>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:if test="$pos > 0">
-            <xsl:text> </xsl:text>
-          </xsl:if>
-          <xsl:value-of select="$first-word" />
-          <xsl:call-template name="wrap-string">
-            <xsl:with-param name="str" select="substring-after( $str, ' ' )" />
-            <xsl:with-param name="wrap-col" select="$wrap-col" />
-            <xsl:with-param name="break-mark" select="$break-mark" />
-            <xsl:with-param name="pos" select="$pos-now" />
-          </xsl:call-template>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:choose>
-        <xsl:when test="$pos + string-length( $str ) >= $wrap-col">
-          <xsl:copy-of select="$break-mark" />
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:if test="$pos > 0">
-            <xsl:text> </xsl:text>
-          </xsl:if>
-        </xsl:otherwise>
-      </xsl:choose>
-      <xsl:value-of select="$str" />
-    </xsl:otherwise>
-  </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>