Cursor adding some special characters to make file diffs completely show as different

Hi, I noticed that when I asked cursor for a solution, it did implement that in my code base completely. No issues about this however, it did something with the characters in the files to make it look like the entire file changed when reviewing in Github diff even those all the lines where essentially the same. Almost Like it added some special characters that were invisible in the diffs.

any ideas why this would happen?

It might be just a diff issue. There are normally in code no special characters that are invisible.

You can ask AI if there are any special characters like invisible characters in the file.