Skip to content

Commit

Permalink
#433 Failing test for justified text with a line ending with br tag. …
Browse files Browse the repository at this point in the history
…[ci skip]
  • Loading branch information
danfickle committed Jan 29, 2020
1 parent 82bdeda commit 5baca05
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
@page {
size: 100mm 5cm;
margin: 0;
}
body {
margin: 0;
width: 100mm;
text-align: justify;
}
</style>
<title>test</title>
</head>
<body>
<p>
hello world<br/>
hello
</p>
<p style="text-align: left;">
hello world<br/>
hello
</p>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 5baca05

Please sign in to comment.