Skip to content

fix line wrapping by first flattening the tree before splitting new lines #64

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

Merged
merged 4 commits into from
Apr 8, 2017

Conversation

conorhastings
Copy link
Collaborator

@conorhastings conorhastings commented Apr 8, 2017

closes #63

@bmathews believe i've found a better long term solution to wrapping individual lines by first flattening the code tree to an array of only single child span elements. This gives us guarantees when reducing over the tree that every element has the same signature of span + 1 child which is text making a lot easier to catch edge cases.

Let me know if you time to take a look, thanks (specifically this commit -- 25e9318)

@bmathews
Copy link
Collaborator

bmathews commented Apr 8, 2017

Haven't tested it yet, but it looks good!

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.

wrapLines sometimes wraps more than one line
2 participants