Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove empty lines from Python code.

  • Loading branch information...
commit 93970d096299ab996b1a25b2d823c1623bd8d885 1 parent af0c3d4
@epeli epeli authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ftplugin/python/slime.vim
View
3  ftplugin/python/slime.vim
@@ -1,3 +1,4 @@
function! _EscapeText_python(text)
- return substitute(a:text, "\n", "
+ let no_empty_lines = substitute(a:text, '\n\s*\ze\n', "", "g")
+ return substitute(no_empty_lines, "\n", "
", "g")
Please sign in to comment.
Something went wrong with that request. Please try again.