mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
docs: remove unused wrapstring.xsl file
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>
This commit is contained in:
parent
caa2545457
commit
9411bbcd5c
@ -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) \
|
||||
|
@ -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>
|
Loading…
x
Reference in New Issue
Block a user