When was support for <p> elements removed?

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

jasperreportsUsersSince2008's picture
Joined: Apr 25 2022 - 12:54am
Last seen: 3 months 2 weeks ago

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.
 

mrajkuma - 3 months 3 weeks ago

Hi Gerd - I am looking into this question.  Can you please specify which version of Jaspersoft you are using?

ameyers - 3 months 3 weeks ago

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

teodord's picture
53238
Joined: Jun 30 2006 - 9:00am
Last seen: 5 hours 43 min ago

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

..&lt;p&gt;this is a along paragraph At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata...&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;hugo&lt;/p&gt;..

working snippet without minification

..&lt;p&gt;this is a along paragraph At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata...&lt;/p&gt;<br>&lt;p&gt;&lt;/p&gt;<br>&lt;p&gt;&lt;/p&gt;<br>&lt;p&gt;Regards&lt;/p&gt;<br>&lt;p&gt;&lt;/p&gt;<br>&lt;p&gt;hugo&lt;/p&gt;..

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!

Attachments: 
AttachmentSize
Image icon visualisation.png1009.21 KB
jasperreportsUsersSince2008's picture
Joined: Apr 25 2022 - 12:54am
Last seen: 3 months 2 weeks ago

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

teodord's picture
53238
Joined: Jun 30 2006 - 9:00am
Last seen: 5 hours 43 min ago
Feedback
randomness