What happened
The FAA’s narrative, in sentence case. The FAA writes it in capitals and removes private details.
(-23) United flight 239 flying from Washington DC to san francisco made an unscheduled landing in Indianapolis, IN after declaring an emergency due to a smell of smoke in the cabin. Maintenance personnel in Indianapolis found the flight deck door lock solenoid had turned brown in color. The solenoid was found to be defected.
As the FAA filed it
(-23) UNITED FLIGHT 239 FLYING FROM WASHINGTON DC TO SAN FRANCISCO MADE AN UNSCHEDULED LANDING IN INDIANAPOLIS, IN AFTER DECLARING AN EMERGENCY DUE TO A SMELL OF SMOKE IN THE CABIN. MAINTENANCE PERSONNEL IN INDIANAPOLIS FOUND THE FLIGHT DECK DOOR LOCK SOLENOID HAD TURNED BROWN IN COLOR. THE SOLENOID WAS FOUND TO BE DEFECTED.