mihai-vlc / sublime-jsfmt

jsfmt plugin for Sublime Text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leave only one empty final line

lipis opened this issue · comments

I haven't try it (as I'm writing mostly in CoffeeScript) but I noticed in your gif that after save there are two empty lines in the end of the file :)

687474703a2f2f692e696d6775722e636f6d2f7a6b42765136582e676966-1

That's a job for editorconfig. A slightly different usecase.

I thought of that.. but there is a race condition on who is the last :) It's a minor thing.. although annoying if it's actually left there and .editorconfig didn't catch it after all..

sublime lets two pre-save hooks race? that seems bad.

Everything seems to work ok now, @lipis can you confirm ?

@ionutvmi if you say so we can close it down.. as I don't use this plugin anyway.. sorry :/