Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#305 Tests that white-space: pre-wrap works correctly.
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+4.77 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/text/line-wrap-pre-wrap.pdf
Binary file not shown.
20 changes: 20 additions & 0 deletions
20
openhtmltopdf-examples/src/main/resources/visualtest/html/text/line-wrap-pre-wrap.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,20 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 200px 300px; | ||
margin: 10px; | ||
} | ||
body { | ||
margin: 0; | ||
max-width: 180px; | ||
} | ||
</style> | ||
</head> | ||
<body style="font-family: 'TestFont'; color: black; font-size: 20px; white-space: pre-wrap;"> | ||
Spaces | ||
Tab | ||
Some text is going onto more than one line and wrapping as needed. | ||
Line<br/> break. | ||
</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