babel: make sure that source-code blocks don't consume their neighbors
* contrib/babel/lisp/org-babel.el (org-babel-where-is-src-block-result): on result insertion, ensure that code blocks don't overrun subsequent lines or source blocks
This commit is contained in:
parent
b7e50cdc3d
commit
689b51224f
|
@ -887,7 +887,8 @@ following the source block."
|
||||||
"#+results"
|
"#+results"
|
||||||
(when hash (concat "["hash"]"))
|
(when hash (concat "["hash"]"))
|
||||||
":"
|
":"
|
||||||
(when name (concat " " name)) "\n"))
|
(when name (concat " " name)) "\n\n"))
|
||||||
|
(backward-char)
|
||||||
(beginning-of-line 0)
|
(beginning-of-line 0)
|
||||||
(if hash (org-babel-hide-hash)) t)))
|
(if hash (org-babel-hide-hash)) t)))
|
||||||
(point))))))
|
(point))))))
|
||||||
|
|
Loading…
Reference in New Issue