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 retention of formats between lines. #403

Merged
merged 1 commit into from
Jun 26, 2015

Conversation

willrowe
Copy link
Contributor

This fixes #386 fixes the situation mentioned in #386 where a single enter will clear certain formats, while leaving others in place, it does not fix the double enter issue.
There's a bug in this each loop when the CoffeeScript is converted to JavaScript. Since CoffeeScript always returns the last statement, it is returning the result of setting the format which can be false and will then drop out of the loop, not applying the remaining formats.
I also added a test to make sure that formatting is retained from now on.

@willrowe
Copy link
Contributor Author

There are some issues with the test, I'll take a look at it later.

@willrowe
Copy link
Contributor Author

Any chance you could re-run the one job that timed out @jhchen?

jhchen added a commit that referenced this pull request Jun 26, 2015
Fix retention of formats between lines.
@jhchen jhchen merged commit 7243bf2 into slab:develop Jun 26, 2015
@jhchen
Copy link
Member

jhchen commented Jun 26, 2015

Thanks for the fix!

@willrowe willrowe deleted the fix-format-retention branch June 29, 2015 02:03
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.

All rich text formatting plus the font color gets removed on double Enter
2 participants