From 319dd7ad9fac2b25583cce3ea9e30ac97309f712 Mon Sep 17 00:00:00 2001 From: Carlos Amengual Date: Fri, 15 Sep 2023 17:56:49 +0200 Subject: [PATCH] transcoder: use the 2-argument `setUserStyleSheet()` method variant when setting the user sheet in `CSSTranscodingHelper` --- .../sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java b/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java index 914b5bcc7..64f159489 100644 --- a/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java +++ b/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java @@ -774,7 +774,8 @@ private void transcodeDOMDocument(DOMDocument document, TranscoderOutput output, String conEnc = purl.getContentEncoding(); Reader userRe = AgentUtil.inputStreamToReader(is, conType, conEnc, StandardCharsets.UTF_8); - ((CSSStyleSheetFactory) document.getImplementation()).setUserStyleSheet(userRe); + ((CSSStyleSheetFactory) document.getImplementation()) + .setUserStyleSheet(purl.getPostConnectionURL(), userRe); } }