Restore some functionality of the sphinx directive....
Restore some functionality of the sphinx directive.
See
#11362
The issue is in 2 part, before IPython 7.0 the input splitter was
state full, this was (in part) due to readline.
The second part is that because of this, we had to be a bit adressive of
what was considered complete code (it had to have 2 new line). This is
now not required anymore as we can submit stuff as a whole.
I hope that this fixes that. I have another fix in mind that count (and
reset) the number of consecutive blank line, but that will be more
complicated end code.