Complex sentence: She took part in the attacks on Rabaul and Tarawa before being torpedoed by Japanese planes, having to be repaired and refitted in San Francisco from January to July 1944.
Split into simpler sentences: She took part in the attacks on Rabaul and Tarawa before being torpedoed by Japanese planes. Having to be repaired and refitted in San Francisco from January to July 1944.