Formatting for list is almost working correctly.