Add correct formatting to detailed search