I think that Tenzin had been courting Lin for the longest time and then after she begins to seriously return his feelings he ditches her for Pema. Poor Lin <3
I don't think it was like that. The creators already confirmed that they had had a rough patch because Lin didn't want kids, and it just didn't work out.