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 for Head Ident to be fetched from Attributes on AttributedString #71

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

Conversation

darko55s
Copy link

Fixes #67

Copy link
Contributor

@ngoleo ngoleo 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 @darko55s! Could you add a snapshot test for this scenario so we can prevent this from breaking in the future?

@darko55s
Copy link
Author

darko55s commented Mar 3, 2021

@ngocholo Yeah ill do that asap.

@timcmiller
Copy link

@darko55s @ngocholo I've been using this locally and noticed if I had a headIndent set the link(at point:) wouldn't account for the offset.

You need to change this line in Link.swift to

lineOrigin.x += penOffset

@frndev
Copy link

frndev commented Dec 14, 2021

Any news on this bug?

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.

Attributed string attributes not preserved
4 participants