mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-07-20 15:26:29 +00:00
ob: fix indentation bug when inserting results from inline code blocks
* lisp/ob.el (org-babel-insert-result): Don't choke if indent is not a number.
This commit is contained in:
parent
d9eeb15ab9
commit
e9cba96b0a
|
@ -1557,7 +1557,7 @@ code ---- the results are extracted in the syntax of the source
|
||||||
(org-babel-examplize-region beg end results-switches)
|
(org-babel-examplize-region beg end results-switches)
|
||||||
(setq end (point)))))
|
(setq end (point)))))
|
||||||
;; possibly indent the results to match the #+results line
|
;; possibly indent the results to match the #+results line
|
||||||
(when (and (not inlinep) indent (> indent 0)
|
(when (and (not inlinep) (numberp indent) indent (> indent 0)
|
||||||
;; in this case `table-align' does the work for us
|
;; in this case `table-align' does the work for us
|
||||||
(not (and (listp result)
|
(not (and (listp result)
|
||||||
(member "append" result-params))))
|
(member "append" result-params))))
|
||||||
|
|
Loading…
Reference in a new issue