fork of org mode
Go to file
Gong Qijian 1966d58b25 ob-python: Insert blank line when sending code to interpreter
* lisp/ob-python.el (org-bable-python-evaluate-session):

Syntax error occurs when evaluating the following code block:

\#+begin_src python :session
if True:
    1
2
\#+end_src

A blank line is required for top level module code to end an indented block, such as a for loop, try/except, or if statement.

https://www.python.org/dev/peps/pep-0008/#blank-line

TINYCHANGE
2018-04-03 21:24:18 +02:00
contrib contrib: ob-sclang: Fix compilation issue. 2018-03-25 23:28:42 +02:00
doc Backport commit 9bff405d0 from Emacs 2018-04-01 17:27:10 -04:00
etc Backport commit f2caf08ca from Emacs 2018-03-07 22:07:25 -05:00
lisp ob-python: Insert blank line when sending code to interpreter 2018-04-03 21:24:18 +02:00
mk Remove obsolete mk/list-hooks.pl 2018-02-05 15:36:09 +01:00
testing ob-python: Insert blank line when sending code to interpreter 2018-04-03 21:24:18 +02:00
.dir-locals.el Directory local variables: Set sentence-end-double-space to t 2012-08-10 09:24:19 +02:00
.dir-settings.el Directory local variables: Set sentence-end-double-space to t 2012-08-10 09:24:19 +02:00
.gitignore doc/Makefile: Auto-generate org-version.tex for orgcard 2017-06-28 00:54:32 -04:00
.gitmodules updated jump submodule for those behind http proxy 2013-06-06 14:36:24 -06:00
COPYING Add COPYING and fix other related issues. 2012-09-24 19:15:42 +02:00
Makefile Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
README Fix typos in README 2018-01-14 17:46:14 +01:00
README_ELPA Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
README_contribute README_contribute: don't mention repo.or.cz mirror 2018-02-27 08:36:13 +01:00
README_git Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
README_maintainer Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
request-assign-future.txt request-assign-future.txt: Use "Emacs" instead of "Org-mode, which is part of Emacs" 2014-02-07 09:24:52 +01:00

README

This is a distribution of Org, a plain text notes and project planning
tool for Emacs.

The homepage of Org is at:
  https://orgmode.org

The installations instructions are at:
  https://orgmode.org/org.html#Installation

This distribution contains:

README
    This file.

COPYING
    The GNU General Public License.

Makefile
    The makefile to compile and install Org.  For installation
    instructions, see the manual or the more detailed procedure
    on Worg: https://orgmode.org/worg/dev/org-build-system.html

mk/
    Files needed for building Org.

lisp/
    Directory with all the Emacs Lisp files that make up Org.

doc/
    The documentation files.  org.texi is the source of the
    documentation, org.html and org.pdf are formatted versions of it.

contrib/
    A directory with third-party additions for Org.  Some really cool
    stuff is in there.

etc/
    Files needed for the ODT exporter.

testing/
    Testing suite for Org.

request-assign-future.txt
    The form that contributors have to sign and get processed with
    the FSF before contributed changes can be integrated into the Org
    core.  All files in this distribution except the contrib/ directory
    have copyright assigned to the FSF.