Remove the trailing lines.