Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Make React editor indent guide work like it did in the old editor - #2858

Merged
nathansobo merged 1 commit into
masterfrom
ns-react-fix-wrap-guide
Jul 8, 2014
Merged

nathansobo merged 1 commit into
masterfrom
ns-react-fix-wrap-guide

Conversation

@nathansobo

Copy link
Copy Markdown
Contributor

Fixes #2367

  • The indent level of empty lines is the max of the nearest non empty
    line, rather than favoring the level of the line below.
  • An extra wrap guide is no longer rendered for empty lines

I didn't port the specs over because we already had good coverage at the
model level. It just needed to be updated for the preferred behavior.

@kevinsawicki

Copy link
Copy Markdown
Contributor

I think you meant indent guide, not wrap guide, right?

@nathansobo

Copy link
Copy Markdown
Contributor Author

Totally. Oops.

@nathansobo nathansobo changed the title Make React editor wrap guide work like it did in the old editor Make React editor indent guide work like it did in the old editor Jul 7, 2014
Fixes #2367

* The indent level of empty lines is the *max* of the nearest non empty
  line, rather than favoring the level of the line below.

* An extra wrap guide is no longer rendered for empty lines

I didn't port the specs over because we already had good coverage at the
model level. It just needed to be updated for the preferred behavior.
nathansobo pushed a commit that referenced this pull request Jul 8, 2014
Make React editor indent guide work like it did in the old editor
@nathansobo
nathansobo merged commit 3579404 into master Jul 8, 2014
@nathansobo
nathansobo deleted the ns-react-fix-wrap-guide branch July 8, 2014 00:07
@kevinsawicki

Copy link
Copy Markdown
Contributor

💜 🚀

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Indent guide is wrong

2 participants