Input cleaning should happen before we diff the content, not during display. Previously display would crash due to line numbers referencing the line that had been stripped. Fixes #713 Fixes #739 Fixes #742