diff --git a/openhtmltopdf-examples/src/main/resources/visualtest/html/issue-433-text-justify-with-br.html b/openhtmltopdf-examples/src/main/resources/visualtest/html/issue-433-text-justify-with-br.html new file mode 100644 index 000000000..d1c65bdbc --- /dev/null +++ b/openhtmltopdf-examples/src/main/resources/visualtest/html/issue-433-text-justify-with-br.html @@ -0,0 +1,26 @@ + + + + test + + +

+ hello world
+ hello +

+

+ hello world
+ hello +

+ + diff --git a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java index 8f7256a4d..6cc8575de 100644 --- a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java +++ b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java @@ -982,6 +982,16 @@ public void testIssue429BreakWordWithFloats() throws IOException { assertTrue(vt.runTest("issue-429-break-word-with-floats")); } + /** + * Tests that a line ending with the br tag does not get justified. + * https://github.com/danfickle/openhtmltopdf/issues/433 + */ + @Test + @Ignore // Line ending with br tag is being incorrectly justified. + public void testIssue433TextJustifyWithBr() throws IOException { + assertTrue(vt.runTest("issue-433-text-justify-with-br")); + } + /** * Don't launch a ClassCastException if a td in a table is floated. *