Updated api.rst issue that messed up HTML code