Fix diff output when there is only an addition or only a subtraction.