This avoids changing the indentation or number of blank lines etc unnecessarily if nothing has changed.