Forum Bugs

`overflow-wrap` not working for table cells

randal
Hi Prince Team,

Our application emits user-generated content including tables. These tables have a fixed layout, and we use `overflow-wrap: break-word` to ensure the text fits within the table cell.

It seems like this property is not obeyed in Prince output. It seems to behave as if `overflow-wrap: normal`.

Please see attached repro. I would expect the top table's content to wrap, as it does in the HTML (when viewed in Chrome 146 and Firefox). Instead, the contents bleed out over the rest of the table.

Any idea what's going on here?

Thanks,
Randal
  1. table_wrap_repro.html6.0 kB
    HTML input
  2. table_wrap_repro.pdf13.4 kB
    PDF output

Edited by randal

howcome
I cannot reproduce the non-wrapped result you posted.

On my machine, both Prince 16.1 and 16.2 wraps, as you expected.

  1. table_wrap_repro.pdf12.7 kB

Edited by howcome

randal
My apologies. This property does in fact seems to work for me, even in production. I must have mixed up my files in testing (i.e. opened a stale output PDF) and convinced myself this wasn't working, how awkward.

Edited by randal