Skip to content

Fix division by zero when calculating word spacing#3879

Merged
HackbrettXXX merged 4 commits into
parallax:masterfrom
alxndr-pggm:master
Sep 1, 2025
Merged

Fix division by zero when calculating word spacing#3879
HackbrettXXX merged 4 commits into
parallax:masterfrom
alxndr-pggm:master

Conversation

@alxndr-pggm

Copy link
Copy Markdown
Contributor

In situations when the text function is given a line like "\n" it ends up adding Infinity into the generated pdf.
Acrobat does not show the page that contains Infinity as word spacing.
It works in the browser.

@HackbrettXXX HackbrettXXX left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the linter issues.

@HackbrettXXX HackbrettXXX left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for the PR.

@HackbrettXXX
HackbrettXXX merged commit 064194f into parallax:master Sep 1, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants