summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-02-14 23:51:40 -0700
committerEric Schulte <schulte.eric@gmail.com>2011-02-14 23:51:40 -0700
commite9cba96b0ac5689524d2852939854f757757354c (patch)
tree42f83b6b526f98d45f20daff0e2d78052dfebd20
parentd9eeb15ab9d55316f08cd7efe818119bb7e5fc56 (diff)
downloadorg-mode-e9cba96b0ac5689524d2852939854f757757354c.tar.gz
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.
-rw-r--r--lisp/ob.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index b4425b6..7dce47a 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -1557,7 +1557,7 @@ code ---- the results are extracted in the syntax of the source
(org-babel-examplize-region beg end results-switches)
(setq end (point)))))
;; 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
(not (and (listp result)
(member "append" result-params))))