forked from danfickle/openhtmltopdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…soft-hypen plus inserted hyphen overflowing line. The core problem seems to be the under-reporting of width when we have a soft hyphen that is found to be unbreakable.
- Loading branch information
Showing
4 changed files
with
19 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+4.82 KB
...mltopdf-examples/src/main/resources/visualtest/expected/issue-482-infinite-loop-table.pdf
Binary file not shown.
18 changes: 9 additions & 9 deletions
18
openhtmltopdf-examples/src/main/resources/visualtest/html/issue-482-infinite-loop-table.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<html> | ||
<head> | ||
<style> | ||
* { | ||
font-family: 'Liberation Sans', sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
@page { | ||
size: 30px 40px; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.content { | ||
font-family: 'Liberation Sans', sans-serif; | ||
word-wrap: break-word; | ||
white-space:pre-wrap; | ||
width: 10px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<table class="content"><tbody><tr><td width="10"></td></tr></tbody></table> | ||
<div class="content"></div> | ||
</body> | ||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters