[browser] newline at end of file

Dear all,
first time here so I apologize in advance whether it is the wrong place. :slight_smile:
When I commit via browser interface a change of (in my case .json) file without newline at the end of the file, the newline is add any case. That somehow disrupts the diff procedure.
How can I remove the newline at the end of file?

GNU/Linux system, Firefox-like browser.

Hi @dioraman :wave:

Welcome to the community! You’re in the right place!
Is this behavior reproduce-able? Please list the exact steps and some example code that causes this behavior.

Was this done in one of GitHub’s supported browsers?