openbsd-ports/textproc/dblatex/patches/patch-xsl_url_xsl
kili 70a1c41618 Let this work with both texlive2009 and texlive2010.
The os.environ stuff is ok according to martynas@.
2010-11-28 18:19:50 +00:00

13 lines
549 B
Plaintext

$OpenBSD: patch-xsl_url_xsl,v 1.1 2010/11/28 18:19:50 kili Exp $
--- xsl/url.xsl.orig Mon Apr 5 02:07:53 2010
+++ xsl/url.xsl Sat Nov 27 17:44:19 2010
@@ -68,7 +68,7 @@
<xsl:variable name="url2">
<xsl:choose>
<!-- Behaviour depending on the texlive version -->
- <xsl:when test="contains($texlive.version, '2009')">
+ <xsl:when test="$texlive.version >= 2009">
<xsl:call-template name="string-replace">
<xsl:with-param name="string" select="$url"/>
<xsl:with-param name="from" select="'\'"/>