Closed kylebarron closed 6 years ago
Oh, so the issue here that the first line doesn't have any indentation, which trips up IPython's indentation detection?
In that case, there does need to be an update that's timed with the new hydrogen version that removes the trim. Hopefully IPython doesn't choke if there are non-indented empty lines in the middle of the code, or there will be even more work to be done...
IPython is fine if there are non-indented lines in the middle. But when the first line has no indentation, that causes an error.
Changes are currently staged on the master branch, to be released soon (hopefully I can test some more before releasing)
👍
The suggestion I had last night didn't make it into that PR.
What would you think about having a simple
code.replace(/^\n|\n$/g, '')
to fix