Complex sentence: President Jimmy Carter (1977--81) emphasized human rights rather than anti-communism, but dropped détente and returned to containment when the Soviets invaded Afghanistan in 1979.
Split into simpler sentences: President Jimmy Carter (1977--81) at first emphasized human rights rather than anti-communism. He dropped this stance and returned to containment when the Soviets invaded Afghanistan in 1979.