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

#1057 Generating PDF from HTML containing CSS font-size property fails with IllegalArgumentException #1072

Conversation

RadekWikturna
Copy link
Contributor

Description of the new Feature/Bugfix

Added support for font size specified by name, e.g. 'small' or 'large'

Related Issue: #1057

Unit-Tests for the new Feature/Bugfix

  • Unit-Tests added to reproduce the bug

Compatibilities Issues

None

Testing details

Run the FontSizeTest.testNamedFontSize. See also the generated 'Font Size Named.pdf'

@RadekWikturna
Copy link
Contributor Author

The pull request if for the 1.3-java8 branch because right now we need to use Java 8. But eventually, the same fix should go to the main branch.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@RadekWikturna
Copy link
Contributor Author

RadekWikturna commented Feb 22, 2024

Is there a way how to squash all commits into one before merging it? This is possible with GitLab, but I don't know if GitHub can do. Reason: more often then not, one commit is not enough, e.g. you get a warning from static code analysis, or you need to change something based on somebody else's comment. But these additional commits then only make the history too long.

@NicolaIsotta
Copy link

Is there a way how to squash all commits into one before merging it? This is possible with GitLab, but I don't know if GitHub can do. Reason: more often then not, one commit is not enough, e.g. you get a warning from static code analysis, or you need to change something based on somebody else's comment. But these additional commits then only make the history too long.

I think the mantainers can squash the commits when merging the PR.
Otherwise, you can squash the commits on your local copy (git rebase -i HEAD~2) ant then force push.

@asturio asturio merged commit 75523ec into LibrePDF:1.3-java8 Feb 23, 2024
3 checks passed
@asturio asturio self-requested a review February 23, 2024 07:39
@asturio asturio self-assigned this Feb 23, 2024
@asturio asturio added this to the 1.3.42 milestone Feb 23, 2024
asturio pushed a commit that referenced this pull request Feb 23, 2024
* #1057 Generating PDF from HTML containing CSS font-size property fails with IllegalArgumentException

---------

Co-authored-by: Radek Wikturna <radek.wikturna@usu.com>
asturio pushed a commit that referenced this pull request Feb 23, 2024
* #1057 Generating PDF from HTML containing CSS font-size property fails with IllegalArgumentException

---------

Co-authored-by: Radek Wikturna <radek.wikturna@usu.com>
@RadekWikturna
Copy link
Contributor Author

RadekWikturna commented Feb 23, 2024

@asturio, thanks a lot for merging it. Are you going to merge it also to 1.4 and main branch?

@RadekWikturna RadekWikturna deleted the #1057_Generating_PDF_from_HTML_containing_CSS_font-size_property_fails_with_IllegalArgumentException branch February 23, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generating PDF from HTML containing CSS font-size property fails with IllegalArgumentException
3 participants