1

I use HTML2PDF through the Easyreservations Wordpress plugin.
I have setup a template where an email address is displayed into a small frame. This frame is not very wide, and when the email address has more than 25 or so characters, there is no room to display it. But the issue here is that, instead of just cutting the email address, or make it overflow the frame, HTML2PDF throws an exception and the whole document cannot be printed.

Here is the error message :ERROR n°2 File : /****/wp-content/plugins/easyreservations/lib/modules/invoice/html2pdf/html2pdf.class.php Line : 3396 Sentence of 1000 lines => too long Sentence : ****** (a long email address) Width box : 180.00155555556 Length text : 51.816

I think the issue is located in _tag_open_WRITE function : the code tries to split the email address and display it on several lines, but because there is no space it fails. If I add a space in the email address, the issue disappears.

Do you know how to fix this issue ?
Thanks.