summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-12-15 09:58:57 -0700
committerEric Schulte <schulte.eric@gmail.com>2010-12-15 09:58:57 -0700
commite919c97d7e3027ae70e0d17983cd82252d619038 (patch)
treec5fada98d2bb0b65044907cf971b66a8ce98b600
parent8eee473f3760a3ccbdeea98e4de71d6a2464f9df (diff)
downloadorg-mode-e919c97d7e3027ae70e0d17983cd82252d619038.tar.gz
fixed insertion of trailing newline after code block evaluation
* lisp/ob.el (org-babel-result-end): No longer leaving trailing new line after block removal.
-rw-r--r--lisp/ob.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index fe50bb9..802a9ce 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -1527,7 +1527,8 @@ code ---- the results are extracted in the syntax of the source
(blocks-re (regexp-opt
(list "latex" "html" "example" "src" "result"))))
(if (looking-at (concat "[ \t]*#\\+begin_" blocks-re))
- (re-search-forward (concat "[ \t]*#\\+end_" blocks-re) nil t)
+ (progn (re-search-forward (concat "[ \t]*#\\+end_" blocks-re) nil t)
+ (forward-char 1))
(while (looking-at "[ \t]*\\(: \\|\\[\\[\\)")
(forward-line 1))))
(point)))))