Problem exporting a long task to .pdf

Hello everyone and excuse for my English.
I’m exporting data with success to .pdf but my problem is related to long text in the Grid.
The task column has long description (it’s already enough wide) so I’ve tried to reduce font-size and adding the description inside a

. This works fine but when I’m exporting the result is different in the .pdf file: my edit is ignored and text is much more than Grid width again.
How can I resolve?

Thanks in advance

Could you please reproduce this issue here?

If you reduce font-size using custom css, try to specify it in ‘header’ property of export method: … outputfile