Reducing redundant linebreaks