json-emacs / json-mode

Major mode for editing JSON files with emacs
314 stars 66 forks source link

json-mode-beautify strips trailing newline #59

Closed andersk closed 1 year ago

andersk commented 5 years ago

Most people expect a JSON file to end with a trailing newline, but currently json-mode-beautify will always remove a trailing newline. It should either always ensure there is a trailing newline, or at least not remove it if one was present.

taku0 commented 1 year ago

Is this still a issue?