Skip to content

Fix drawing of underlines when they have a nbsp and span to the end of a line.#1271

Merged
SergioEstevao merged 1 commit intodevelopfrom
issue/fix_underline_with_nbsp
Feb 27, 2020
Merged

Fix drawing of underlines when they have a nbsp and span to the end of a line.#1271
SergioEstevao merged 1 commit intodevelopfrom
issue/fix_underline_with_nbsp

Conversation

@SergioEstevao
Copy link
Copy Markdown
Contributor

@SergioEstevao SergioEstevao commented Feb 26, 2020

Fixes #wordpress-mobile/gutenberg-mobile#1218

Change the range were underlines are drawn to avoid them to span to the end of a line. This is a workaround a bug from the Apple CoreText layout system where underlines that contain the &nbsp character expand to the end of the line.

BeforeAfter

To test:

  • Run the demo app
  • Open the content Underline NBSP
  • Check that underlines are draw correctly.

Copy link
Copy Markdown
Contributor

@etoledom etoledom left a comment

Choose a reason for hiding this comment

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

Working great! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants