File 2195-Support-fop-2.1-in-the-build-support-for-the-documen.patch of Package erlang

From 5db01188caa25d643b801cea35a0cb2d602eafa7 Mon Sep 17 00:00:00 2001
From: Lars Thorsen <lars@erlang.org>
Date: Wed, 31 Jul 2019 14:35:46 +0200
Subject: [PATCH] Support fop 2.1 in the build support for the documentation

---
 lib/erl_docgen/priv/xsl/db_pdf.xsl | 6 +++---
 make/otp.mk.in                     | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/erl_docgen/priv/xsl/db_pdf.xsl b/lib/erl_docgen/priv/xsl/db_pdf.xsl
index 1b91d768e3..7080394298 100644
--- a/lib/erl_docgen/priv/xsl/db_pdf.xsl
+++ b/lib/erl_docgen/priv/xsl/db_pdf.xsl
@@ -1658,10 +1658,10 @@
     <fo:block xsl:use-attribute-sets="image">
       <xsl:choose>
 	<xsl:when test="@width">
-	  <fo:external-graphic content-width="scale-to-fit" width="{@width}" inline-progression-dimension.maximum="100%" src="{@file}"/>
+	  <fo:external-graphic content-width="scale-to-fit" width="{@width}" inline-progression-dimension.maximum="100%" src="url('{@file}')"/>
 	</xsl:when>
 	<xsl:otherwise>
-	   <fo:external-graphic content-width="scale-down-to-fit" inline-progression-dimension.maximum="100%" src="{@file}"/>
+	   <fo:external-graphic content-width="scale-down-to-fit" inline-progression-dimension.maximum="100%" src="url('{@file}')"/>
 	</xsl:otherwise>
       </xsl:choose>
       <xsl:apply-templates>
-- 
2.16.4

openSUSE Build Service is sponsored by