Skip to content

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