Skip to content

Commit

Permalink
transcoder: use the 2-argument setUserStyleSheet() method variant w…
Browse files Browse the repository at this point in the history
…hen setting the user sheet in `CSSTranscodingHelper`
  • Loading branch information
carlosame committed Sep 15, 2023
1 parent a694d19 commit 319dd7a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 319dd7a

Please sign in to comment.