Hi there,
we have been using jasperreports happily in our projects for many years now - users can for example create PDF-documents based on their input in online forms.
When users enter line breaks in the online form, our rich editor creates "<p></p>" tags - which was totally fine with PDF-documents created via jasperreports and text fields with markup "html" until some versions ago.
When and why was the support (or let's say equivalent handling) of html tag "<p></p>" changed or removed, and is there a way to restore this behavior again? Unfortunately, we were unable to find any information about this.
Thank you so much for shedding light on this matter!
Regards, Gerd
3 Answers:
Hi,
This was a regression introduced in 6.19.0 that has been solved since 6.20.1.
https://community.jaspersoft.com/jasperreports-library/issues/14466
I hope this helps.
Teodor
Thank you so much for your quick reply - and sorry for the missing version information. We are running our tests with the latest version 6.20.5.
As we still have that problem, we did some more digging, and found out, that the cause seems to be the code minification, which our WYSIWYG-Editor is applying automatically:
not working minified snippet
..<p>this is a along paragraph At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata...</p><p></p><p></p><p>Regards</p><p></p><p>hugo</p>..
working snippet without minification
..<p>this is a along paragraph At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata...</p><br><p></p><br><p></p><br><p>Regards</p><br><p></p><br><p>hugo</p>..
Is there any kind of solution you could suggest? Unfortunately, our WYSIWYG-Editor does not come with an option to store code without minification.
Thank you so much for your ideas!
Attachment | Size |
---|---|
![]() | 1009.21 KB |
Hi,
This is indeed a regression after the modifications we made to improved bulleted/numbered lists support in the HTML markup processor.
It should now be fixed by this commit:
https://github.com/TIBCOSoftware/jasperreports/commit/b884e0355759d7dd5b...
Thank you,
Teodor
Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
Hi Gerd - I am looking into this question. Can you please specify which version of Jaspersoft you are using?