Apparently there is some confusion with the line terminators. It looks like CRLF line endings are replace by LF (Unix-like). This makes the macro being "modified" without and actual changes and the file changes from CRLF line terminators to LF ones.
The macro editor should maintain the line terminators rather than trying to fix them.
This is in particular annoying with git-managed code where git consistently changes line terminators to CRLF.