-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doctests incorrectly formatted with reST option #11
Comments
Hi @dmwelch! Thanks for reporting your problem. Pyment actually will proceed the docstring in the order of elements when it cannot identify them. As it suppose to have at first a description the doctest is considered as that. |
@dmwelch This commit should fix the problem. So the Doctests will systematically be put to the end of the docstring. I think there could still be a problem if some text is between two doctests. The doctests will be extracted but not the indeopendent text that will stay on place. |
converts to
which breaks the doctest.
In addition, the reST markup is placed after the doctests, which isn't optimal for Sphinx-generated HTML.
The text was updated successfully, but these errors were encountered: