From f301fa9f58499d597ff46966379c21b79f732f7f Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Thu, 2 Apr 2020 10:41:17 +0000 Subject: [PATCH] Fix test on Windows git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1876041 13f79535-47bb-0310-9956-ffa450edef68 --- .../accessibility/fo/FO2StructureTreeConverterTestCase.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java b/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java index 39b6cbaf0..5d353a886 100644 --- a/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java +++ b/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java @@ -27,7 +27,6 @@ import java.io.InputStream; import java.io.OutputStream; import java.io.StringWriter; -import javax.xml.transform.OutputKeys; import javax.xml.transform.Result; import javax.xml.transform.Source; import javax.xml.transform.Transformer; @@ -185,9 +184,8 @@ public class FO2StructureTreeConverterTestCase { StringWriter sw = new StringWriter(); TransformerFactory tf = TransformerFactory.newInstance(); Transformer transformer = tf.newTransformer(); - transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.transform(new DOMSource(doc), new StreamResult(sw)); - assertEquals(tree, sw.toString()); + assertEquals(tree.replace("\n", ""), sw.toString().replace("\n", "")); } private void testConverter(String foResourceName) throws Exception { -- 2.39.5