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

Don't wrap due to trailing space #310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Sep 16, 2014

The line wrapper considers trailing space part of a word, so it will bump words to the next line when they really would have fit.

This change tracks the amount of trailing space in the word so we can choose to only wrap when the word itself would overflow beyond the available width.

Here is a document that shows the same text rendered before and after this code change.

The line wrapper considers trailing space part of a word, and so it will
bump words to the next line when they really would have fit.
@lukasvan3l
Copy link

I believe I'm running into this same issue here. This PR is hopelessly outdated, I'm afraid I'll have to redo this same exercise on the current codebase.
image

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