I am trying to prove that if a continuous function $F$ is holomorphic everywhere in a region $D$ except on line $L$ that passes through $D$, then $F$ is holomorphic on $D$.
However, I am having trouble in coming up with a rigorous prove.
We can assume that $D$ is an open ball with $L$ running through $D$
Possible proof: My method was to use Morera's to show that $\int_TFdz=0$ for all triangle $T\subseteq D$. I have shown that if T has a vertex on L then $\int_TFdz=0$. The next case I considered was when T had an edge lying on the line. I tried to use the method here: Function holomorphic except for real line and continuous everywhere is entire
So I'm trying to show that $|\int_TFdz|=|\sum \int_{T_i}Fdz|<\epsilon $,$\forall \epsilon>0 $ where $T_i$ are the smaller triangles with edges on the line L. The integrals over the other triangles would be 0 as they would either have a vertex on the line or are completely in a holomorphic region. I think we can bound the $\int_{T_i}Fdz$ to be arbitrarily small. However, I can't come up with something rigourous. i.e. I tried to cover the edge with finite number of open balls to bound the smaller triangles but got stuck. Can anyone come up with a rigorous way of proving that $\int_TFdz=0$ if T has an edge on L?
