Re: [O] [PATCH] ob-python: Insert necessary blank line when sending code to interpreter

2018-04-03 Thread qijian gong
I've added comment and test (New path file in attachment),the test results look fine. #+BEGIN_SRC sh $ make BTEST_RE="test-ob-python" test-dirty ... selected tests: test-ob-python Running 7 tests (2018-04-03 16:51:31+0800) executing Python code block... Code block evaluation complete. passed 1

Re: [O] [PATCH] ob-python: Insert necessary blank line when sending code to interpreter

2018-04-02 Thread Nicolas Goaziou
Hello, qijian gong writes: > I've written this patch to fix the syntax error alarm caused by evaluating > the following code block: > > #+BEGIN_SRC python :session > if True: > 1 > 2 > #+END_SRC Thank you. Could you add a test in "test-ob-python.el"? Could you also add a comment explainin

[O] [PATCH] ob-python: Insert necessary blank line when sending code to interpreter

2018-04-01 Thread qijian gong
Hello, I've written this patch to fix the syntax error alarm caused by evaluating the following code block: #+BEGIN_SRC python :session if True: 1 2 #+END_SRC In *Python* buffer: #+BEGIN_QUOTE if True: Python 3.6.1 (default, Apr 8 2017, 19:21:02) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (cla