New line problem and correction for PDF invoice

I’ve found a new-line problem in my invoice (PDF format).
If i input more than one line as description of an existing product/service, all the line are written in the PDF document as a unique line.

I’ve made a capture of :
- the invoice page
- the problem view in PDF
- the problem in the source code
- the correction to do in the code (/htdocs/lib/pdf.lib.php - line 722)
- the corrected PDF

I made a feedback for this problem because if i update my dolibarr with a new version i don’t want to have to correct this problem again.

invoice_bug_and_correction.zip (371 KB)

Thanks for this very good software!

This is a known problem, hopefully the v3.2.0 should already fix this bug. If you can, you can try the v3.2.0 on the github, but this is an unstable development release.

I’ve update my version with the “Development version” available here : “http://www.dolibarr.org/downloads”. It’s the version 3.2.0-alpha.

The same problem occur,
and my solution still the same and work.

The file to modify is now in /htdocs/core/lib/pdf.lib.php
and the line is 743

So if you can just modify the 3 characters, as i say in my first post, in the source code to correct this bug it would be ok for everyone.

Thanks.

Then I hope that one of the devs will see this thread :happy: