Checking formatting for nested lists