Line end reformatting