Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove empty lines from Python code #14
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...