Complex sentence: For a long time they continued their "flirtation act" with Burns as Allen's most persistent suitor; they didn't have their real-life marriage written into the show until the 1940s.
Split into simpler sentences: For a long time they continued their "flirtation act" with Burns as Allen's most persistent suitor. Their real-life marriage was not written into the show until the 1940s.