danfickle / danfickle/openhtmltopdf
overflow/white-space
- Dominant language
- Java
- Stars
- 2.2k
- Forks
- 423
- PR merge metrics
- No merged PRs in 30d
Description
Here's my css for a table cell:
```
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
```
The HTML:
```
29010180A735
Some very large text which doesn't fit into the cell
```
Opening the HTML in the browser results in
1. 
I know that openhtmltopdf doesn't support `text-overflow: ellipsis` ([GitHub issue](https://github.com/danfickle/openhtmltopdf/issues/56)).
When I remove it, the HTML looks like this in the browser:
2. 
But after converting to pdf with openhtmltopdf the result is as follows:
3. 
What am I doing wrong? How can I at least achieve 2.?
Example code to reproduce the issue in the openhtmltopdf sandbox:
```
Lohnabrechnung
table {
table-layout: fixed;
width: 50%;
}
td {
border: 1px solid red;
}
29010180A735
Some very large text which doesn't fit into the cell
Another cell
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.