How do I stop Github's web editor from adding a newline to the end of file?

Viewed 147

I recently used Github's web editor to propose a change to a project. However, it added a newline to the end of the file, and that is against project's style rules (some sort of compatibility issue).

I've tried simply removing the newline, but after committing all I get is this:

No changes to show.

This commit has no content.

I've dug through github settings, but haven't found anything that might be related to newlines or end-of-files. I don't know anything about git command line, or any way to use github other than their web editor. I barely even understand how to clone a repository.

How do I fix this?

0 Answers
Related