-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#429 Tests and fixes break-word with centered or justified text.
I had taken care of breaking itself, but measurement (required for non-left aligned text) was previously forgotten. Now fixed.
- Loading branch information
Showing
5 changed files
with
93 additions
and
7 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
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
+8.66 KB
...f-examples/src/main/resources/visualtest/expected/issue-429-break-word-extra-centered.pdf
Binary file not shown.
53 changes: 53 additions & 0 deletions
53
...opdf-examples/src/main/resources/visualtest/html/issue-429-break-word-extra-centered.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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
margin: 10mm; | ||
size: 100mm 25cm; | ||
} | ||
body, td { | ||
margin:5mm; | ||
width: 68mm; | ||
text-align: center; | ||
border: 1px solid black; | ||
} | ||
table, .wrap { | ||
word-wrap: break-word; | ||
} | ||
</style> | ||
</head> | ||
<body style="font-family: serif;"> | ||
|
||
<div class="wrap"> | ||
FirstWordTooLongForLineSoItShouldWrap MiddleWordTooLongForLineSoItShouldWrap LastWordTooLongForLineSoItShouldWrap | ||
</div><br/> | ||
|
||
<div class="wrap"> | ||
First Word Too Long For Line So It Should MiddleWordTooLongForLineSoItShouldWrap LastWordTooLongForLineSoItShouldWrap | ||
</div><br/> | ||
|
||
<div class="wrap"> | ||
First Word Too Long For Line So It Should MiddleWordTooLongForLineSoItShouldWrap Last Word Too Long For Line So It Should | ||
</div><br/> | ||
|
||
<div class="wrap"> | ||
FirstWordNotTooLongForLineSoIt FirstWordNotTooLongForLineSoIt FirstWordNotTooLongForLineSoIt FirstWordNotTooLongForLineSoIt | ||
</div><br/> | ||
|
||
<div class="wrap"> | ||
FirstWordNotTooLongForLine <b>FirstWordNotTooLongForLine</b> <b><i>FirstWordNotTooLongForLineSoIt FirstWordNotTooLongForLineSoIt</i></b> | ||
</div><br/> | ||
|
||
<div class="wrap"> | ||
One two three FirstWordNotTooLongForLineSoIt four five FirstWordNotTooLongForLineSoIt six seven FirstWordNotTooLongForLineSoIt eight FirstWordNotTooLongForLineSoIt | ||
</div><br/> | ||
|
||
<table> | ||
<tr><td>OneTwoThreeFour</td><td>Five six seven</td><td>Eight nine</td></tr> | ||
<tr><td>One Two Three Four</td><td>Fivesixseven</td><td>Eight nine</td></tr> | ||
<tr><td>One Two Three Four</td><td>Five six seven</td><td>Eightnine</td></tr> | ||
<tr><td>OneTwoThreeFour</td><td>Fivesixseven</td><td>Eightnine</td></tr> | ||
</table> | ||
|
||
</body> | ||
</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