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

Fix word spacing after justified text #3168

Merged
merged 1 commit into from May 21, 2021

Conversation

SimonPrins
Copy link
Contributor

Fixes #3167

It adds a 0 Tw command for the last line of a justified section of text. Previously the last line would not have a Tw set at all, meaning it would use whatever word spacing the second to last line used. The spacing of the second to last line would also be used for any following text if it used a different alignment than 'justify'.

I suspect this may also be a fix for #2553

Copy link
Collaborator

@HackbrettXXX HackbrettXXX left a comment

Choose a reason for hiding this comment

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

Thanks for the PR and the great issue description. Would love to have more contributions like this :)

Looks good and I'm gonna merge it.

@HackbrettXXX HackbrettXXX merged commit 99d4b95 into parallax:master May 21, 2021
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.

When using text align: justify and then text align: left, the spacing is wrong for the second section of text.
2 participants