See NBSP and NNBSP characters in the difference
Proposal
Make the following characters visible:
in the differential.
Let's consider that I push the following code:

This is what I see in the difference :

It is not possible to check the non-breaking spaces.