emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Nicolas Goaziou
Subject: Re: [O] [PATCH] ob-python: Insert necessary blank line when sending code to interpreter
Date: Mon, 02 Apr 2018 20:56:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

qijian gong <address@hidden> 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 explaining what you are doing?

> +        (let ((curr-indent (string-match "[^\s]" line)))

  (string-match "\\S-" line)

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]