davidchambers/doctest — pull request #2 by danse (2012-12-09 17:13:51+00:00)
Title: Allowed arbitrary dot number for multiline input

I told you ...

So, I discovered that multiline syntax here is different from the one that the `node` shell uses.

Now, it is a powerful work flow to simply paste experiments from the command line, and translate them into doctests, useful for regression, at least! I always did like that using `python -i`, and I see that with node this can be useful combined with `.load` and `.save`.

The problem is that dots from node's prompt can vary with the expression depth, so I simply managed to accept an arbitrary number of dots.