If I add e.g. a *.zip to the gitignore over the context-menu like this  I get a gitignore-file that only appends the filter directly to the end of the file without a preceding newline  I think the method assumes, that the file always ends with a newline. (The gitignore was generated with Visual Studio)