Remove duplicate blank end line