Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML is displayed faulty 3.5 / 3.5.2 #905

Closed
frankb33 opened this issue Nov 4, 2024 · 2 comments
Closed

HTML is displayed faulty 3.5 / 3.5.2 #905

frankb33 opened this issue Nov 4, 2024 · 2 comments
Milestone

Comments

@frankb33
Copy link

frankb33 commented Nov 4, 2024

Hi Charly,
first: I appreciate your amazing job!
I just stumbled about an issue. If I put HTML text in a JLable with 3.5 or 3.5.2 it seems to ignore some styling. In 3.4.1 and the older releases (3.2, 3.1, 3.0) I used it worked as expected.
I have tested the issue right now on Linux Mint XFCE 22, Adoptium Java 21 and MacOS ARM 14.7 Java 21.

I attached the HTML (appending as code seems to have issues here)
example_html.txt

looks now like that :
Label_with_3_5

and before it was ok:
Label_with_3_4_1

All the best
Frank

DevCharly added a commit that referenced this issue Nov 10, 2024
…attributes (e.g. `<style type='text/css'>`) (issue #905; regression in 3.5)
@DevCharly
Copy link
Collaborator

Thanks for reporting.

This is because FlatLaf does not recognize the <style type='text/css'> tag and inserts <head>...</head> before the styles, which makes the HTML invalid and the table styles become part of the body text.

fixed in latest 3.5.3-SNAPSHOT: https://github.com/JFormDesigner/FlatLaf#snapshots

@DevCharly DevCharly added this to the 3.5.3 milestone Nov 10, 2024
@frankb33
Copy link
Author

Thanks a lot! Stunned by your service!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants