Complex sentence: Gen. Robert E. Lee did not want to continue on to Pennsylvania without capturing the town, which was on his supply line and would control one of his possible routes of retreat if the invasion did not go well.
Split into simpler sentences: Gen. Robert E. Lee did not want to continue on to Pennsylvania without capturing the town. It was on his supply line and could control one of his possible routes of retreat if the invasion did not go well.