Fix lineendings if format is ok