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 360 #424

Merged
merged 2 commits into from
Jun 23, 2016
Merged

Fix 360 #424

merged 2 commits into from
Jun 23, 2016

Conversation

courajs
Copy link
Contributor

@courajs courajs commented Jun 23, 2016

Fixes #360

We insert the new markup at a consistent index across the range.
If we just push on the end of the list, it can end up in different positions of the markup stack. This results in unnecessary closing and re-opening of the markup each time it changes position.
If we just push it at the beginning of the list, this causes unnecessary closing and re-opening of surrounding tags.
So, we look for any tags open across the whole range, and push into the stack at the end of those.

Let me know if that isn't clear enough!

/cc @bantic

courajs added 2 commits June 23, 2016 16:00
Specify behavior for adding markups that surround, are surrounded by, or
are interleaved with existing markups.

Failing tests for bustle#360
Fixes bustle#360

We insert the new markup at a consistent index across the range.
If we just push on the end of the list, it can end up in different positions
of the markup stack. This results in unnecessary closing and re-opening of
the markup each time it changes position.
If we just push it at the beginning of the list, this causes unnecessary closing
and re-opening of surrounding tags.
So, we look for any tags open across the whole range, and push into the stack
at the end of those.
@bantic
Copy link
Collaborator

bantic commented Jun 23, 2016

CI failures seem due to unrelated issues at SauceLabs — I'm restarting them

@bantic
Copy link
Collaborator

bantic commented Jun 23, 2016

🎆 thanks, @courajs !

@bantic bantic merged commit 807db79 into bustle:master Jun 23, 2016
@courajs courajs deleted the fix-360 branch June 23, 2016 20:34
@bantic
Copy link
Collaborator

bantic commented Jul 8, 2016

released in v0.9.8

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