I found a simpler way that employs a double-angle identity for $cos$. In the second step of my textbook's proof, we multiply the numerator and the denominator by $2cos\left(\frac a2\right)$:
$$tan\left(\frac a2\right) = \frac{sin\left(\frac a2\right)}{cos\left(\frac a2\right)} =\frac {2\sin\left(\frac a2\right)\cos\left(\frac a2\right)}{2\cos^2\left(\frac a2\right)}$$
The nominator simplifies to $sin(a)$ using a double-angle identity. At the same time, we add a plus one and a minus one to the denominator:
$$\frac {sin(a)}{1+2\cos^2\left(\frac a2\right)-1}$$
But hey, $2\cos^2\left(\frac a2\right)-1$ equals $cos(a)$, as follows from the double-angle identity for $cos$:
$$cos(2u)=cos^2(u)-sin^2(u)=cos^2(u)-(1-cos^2(u))=2cos^2(u)-1$$
Hence, with $\left(\frac a2\right)$ as $u$, which means that $2u$ is simply $a$, we get
$$tan\left(\frac a2\right) = ... = \frac {sin(a)}{1+cos(a)}$$
(kudos to Julie Harland)