Tidying lines