aperezdc / vim-template

Simple templates plugin for Vim
371 stars 152 forks source link

Blank line added to end of template #119

Open jgarbers opened 7 years ago

jgarbers commented 7 years ago

I've got a template for Python code. When I create a new .py file, the template is processed correctly, except that an extra blank line is appended (this seems to happen for all the other templates too). The Python style checker I use complains about blank lines at the end of the file so I'd prefer it not to be there. Any suggestions? Thanks!

aperezdc commented 7 years ago

This looks related to the issue described in #115, which has to do with our logic around l:deleteLastLine in templates.vim:453. Let's keep this as a separate issue, as the described effect is different.