function! _EscapeText_python(text)
  return substitute(a:text, "\n", "
", "g")
endfunction

function! _EscapeText_python(text)
  let no_empty_lines = substitute(a:text, '\n\s*\ze\n', "", "g")
  return substitute(no_empty_lines, "\n", "
", "g")
endfunction

Remove empty lines from Python code.
Remove empty lines from Python code.

iff/dotfiles-old,iff/dotfiles-old