Forum How do I...?

Is it possible to get a hyphenated date to wrap?

Christine
Hi

I have some narrow table columns and I'd like the date dd-mm-yyyy in a column to wrap at the hyphen.


This works as I need in the browser but not in the PDF. I attach a screenshot of the browser and the generated PDF.

Can I make this happen?

Thanks

Christine
  1. Screenshot 2023-06-28 at 17.32.21.png39.8 kB
    This is in the browser
  2. test.html0.2 kB
    test html
  3. test.pdf13.8 kB
    example pdf showing issue
mikeday
Chrome does wrap at this hyphen but Firefox does not; you can guarantee a wrap by adding a zero-width space after each hyphen, which you could do in Prince with this CSS:

prince-text-replace: '-' '-\200b'
Christine
Thank-you - I"ll give that a go