-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for <BLANKLINE> keyword #239
Comments
This would only matter with But I don't see any problem with some minimal support for these, e.g., replacing them with empty strings in |
Right, I thought of this to be a helper for the regex searching and seperating the doctests. In the end |
I don't think we've needed this one so far (and we default to normalizing whitespace since there are differences between Octave and Matlab IIRC). Is this solving any problem that arises when using Sphinx? |
Right. Rethought this. Matlab prints out lots of blank lines, so legability would definitly suffer from such a keyword. But, without having looked at the code; when do you decide what line is still part of the doctest output and what part is of the helptext. Like in this test: |
That's right ("When the m-file contains plaintext documentation, doctest finds tests by searching for lines that begin with |
Python doctest is using the keyword
<BLANKLINE>
for declaring empty lines within a doctest result. Using such a keyword helps the doctest parser finding connected blocks of tests.See
The text was updated successfully, but these errors were encountered: