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 extra line insertion. #226

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

dtzxporter
Copy link
Contributor

Another attempt at fixing #155 and another edge case where two overflowing words next to each other create a shadow run.

Passes all tests and adds a new test.

cc @grovesNL if you wouldn't mind testing this resolves your issue as well.

Fixes pop-os#155, and also fixes Word::Wrap when two buffer overflowing words are next to each other.
@dtzxporter
Copy link
Contributor Author

This is ready for review.

@jackpot51 jackpot51 merged commit be47183 into pop-os:main Feb 2, 2024
1 of 2 checks passed
@dtzxporter dtzxporter deleted the fix-extra-line-insertion branch February 2, 2024 20:12
Comment on lines -1049 to -1053
// TODO: What if the previous span ended with whitespace and the next
// span wraps a new line? Is that possible?
//
// TODO: This comment it outdated, the current word can be a
// whitespace.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why were these notes removed? AFAICT the code change doesn't affect these?

@alokedesai
Copy link

@jackpot51 Would you be open to cutting a new minor version of cosmic text that includes this fix? If not, could you provide more details on the typical release process and when we could expect this to be in a stable release? Thanks so much!

@jackpot51
Copy link
Member

I've created a new release, 0.11.0, that includes this. I will not be back-porting.

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.

4 participants