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

Remove empty lines from Python code #14

Merged
merged 1 commit into from Apr 17, 2012

Conversation

Projects
None yet
2 participants
@epeli
Contributor

epeli commented Apr 8, 2012

When sending Python classes to the REPL, empty line breaks will break the code. Methods of a class are interpreted as separate code chunks by the REPL if there is even a single line break between them.

This pull request removes all lines with only white space characters in them during escaping.

This has small usability issue thou. In multi-line sends we should add one extra line break to the end of the snippet. But my Vim script-fu falls short here...

@jpalardy jpalardy merged commit 93970d0 into jpalardy:master Apr 17, 2012

@jpalardy

This comment has been minimized.

Show comment
Hide comment
@jpalardy

jpalardy Apr 17, 2012

Owner

Thanks.

Owner

jpalardy commented Apr 17, 2012

Thanks.

@0 0 referenced this pull request Jul 29, 2012

Closed

indentation corrupted? #21

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