Cleans up formatting in record view.