Standardise line endings and convert tabs to 4 spaces