Is there any API for formatting Sphinx text?,print(doctree.toprettyxml())