Description
Empty whitespace is removed at the end of "ordinary" lines. At the end of lines starting with # it is not removed however and the editorconfig test of nixpkgs fails.
Small example input
# Wayland in Godot requires X11 until upstream fix is merged
# https://github.com/godotengine/godot/pull/73504
Expected output
# Wayland in Godot requires X11 until upstream fix is merged
# https://github.com/godotengine/godot/pull/73504
Actual output
# Wayland in Godot requires X11 until upstream fix is merged
# https://github.com/godotengine/godot/pull/73504