Browse files

Remove empty lines from Python code.

  • Loading branch information...
1 parent af0c3d4 commit 93970d096299ab996b1a25b2d823c1623bd8d885 @epeli epeli committed Apr 8, 2012
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")

0 comments on commit 93970d0

Please sign in to comment.