0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-20 21:48:39 +00:00
org-mode/testing/lisp
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
..
test-ob-awk.el
test-ob-C.el
test-ob-emacs-lisp.el Update copyright years 2018-01-07 00:27:54 -05:00
test-ob-exp.el org-element: Revert regexp change for inline source blocks and babel calls 2018-02-04 00:30:00 +01:00
test-ob-fortran.el
test-ob-header-arg-defaults.el
test-ob-lilypond.el Fix duplicate tests 2017-09-08 13:20:48 +02:00
test-ob-lob.el ob-lob: Fix Babel calls with external references 2018-01-22 19:27:13 +01:00
test-ob-lua.el
test-ob-maxima.el
test-ob-octave.el
test-ob-perl.el
test-ob-plantuml.el ob-plantuml: Add support for prologue and header variables 2016-12-10 12:06:04 +01:00
test-ob-python.el ob-python: Insert blank line when sending code to interpreter 2018-04-03 21:24:18 +02:00
test-ob-R.el
test-ob-ruby.el
test-ob-scheme.el ob-scheme: Fix results error on unspecified and void values 2017-09-14 15:25:04 +02:00
test-ob-sed.el
test-ob-shell.el Fix duplicate tests 2017-09-08 13:20:48 +02:00
test-ob-sqlite.el Fix table variable with commas in ob-sqlite 2017-09-06 13:18:30 +02:00
test-ob-table.el Revert "ob-table: Fix org-sbe's handling of quotes in cell values" 2018-03-25 22:55:24 +02:00
test-ob-tangle.el Update URLs in source code or tests 2018-01-19 18:30:40 +01:00
test-ob-vala.el ob-vala.el: Add Vala support to Babel 2017-08-07 11:40:25 +02:00
test-ob.el Fix recursive Noweb expansion 2017-12-23 13:58:25 +01:00
test-org-agenda.el test-org-agenda: Small refactoring 2017-08-19 19:42:20 +02:00
test-org-attach-annex.el
test-org-capture.el org-capture: Fix aborting after inserting text at end of buffer 2017-11-03 22:20:11 +01:00
test-org-clock.el Update URLs in source code or tests 2018-01-19 18:30:40 +01:00
test-org-colview.el Update URLs in source code or tests 2018-01-19 18:30:40 +01:00
test-org-datetree.el
test-org-duration.el org-duration: Fix `org-duration-to-minutes' with the empty string 2017-09-07 15:20:26 +02:00
test-org-element.el org-element: Revert regexp change for inline source blocks and babel calls 2018-02-04 00:30:00 +01:00
test-org-feed.el Update URLs in source code or tests 2018-01-19 18:30:40 +01:00
test-org-footnote.el Update URLs in source code or tests 2018-01-19 18:30:40 +01:00
test-org-info.el ox-texinfo: Delegate "info" links handling to "org-info.el" 2017-01-21 14:19:29 +01:00
test-org-inlinetask.el inlinetask: Fix folding of directly consecutive inlinetask children 2017-12-28 19:12:36 +01:00
test-org-lint.el Merge branch 'maint' 2017-08-25 15:25:02 +02:00
test-org-list.el Merge branch 'maint' 2017-05-09 14:49:59 -04:00
test-org-macro.el Merge branch 'maint' 2017-08-21 21:27:06 +02:00
test-org-macs.el Fix `org-string-display' 2017-11-15 18:13:34 +01:00
test-org-pcomplete.el Fix some tests 2017-02-13 17:21:24 +01:00
test-org-protocol.el org-protocol: Sources with date URL are supported 2017-06-28 17:44:27 +02:00
test-org-src.el Fix comma escaping with multiple leading commas 2017-10-24 09:51:43 +02:00
test-org-table.el Make manual and URL links in docstrings clickable 2018-02-05 15:27:12 +01:00
test-org-timer.el org-timer: Fix timer setting from effort property 2017-07-05 12:33:47 +02:00
test-org.el Extend match-sparse-tree test for tag hierarchies 2018-03-22 09:21:23 +01:00
test-ox-publish.el ox-publish: Follow symlink directories 2018-02-13 14:06:56 +01:00
test-ox.el ox: Fix select tags and exclude tags and tags hierarchy 2018-02-04 00:12:45 +01:00
test-property-inheritance.el