Commit <d672551816e106f2ce8a6a04658691db96435fb5> removed last usage of this file so drop it as well. Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx> --- docs/Makefile.am | 1 - docs/wrapstring.xsl | 56 --------------------------------------------- 2 files changed, 57 deletions(-) delete mode 100644 docs/wrapstring.xsl diff --git a/docs/Makefile.am b/docs/Makefile.am index c33ae8afb13..07a7d7a369c 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -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 index b468a700f5e..00000000000 --- a/docs/wrapstring.xsl +++ /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> -- 2.26.2