diff options
author | Dan Davison <dandavison7@gmail.com> | 2011-02-07 22:23:56 +0000 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2011-02-07 22:27:14 +0000 |
commit | 88b793946bef4df484071e3a34b287e70fb0c9b5 (patch) | |
tree | 89ebb77ad1ac9d7cc4be31002c88865d82f9db0a | |
parent | 9e8f1ddcd8b37742e5363d41c02bf38c26cf2e6b (diff) | |
download | org-mode-88b793946bef4df484071e3a34b287e70fb0c9b5.tar.gz |
ob: Fix bug in export of lob one-liners
* lisp/ob-exp.el (org-babel-exp-lob-one-liners): Only replace the
match if a non-nil result is returned
-rw-r--r-- | lisp/ob-exp.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el index 96155a1..c99defc 100644 --- a/lisp/ob-exp.el +++ b/lisp/ob-exp.el @@ -222,7 +222,7 @@ options are taken from `org-babel-default-header-args'." (car (last lob-info))) 'lob)))) (setq end (+ end (- (length replacement) (length (match-string 0))))) - (replace-match replacement t t))))) + (if replacement (replace-match replacement t t)))))) (defun org-babel-exp-do-export (info type) "Return a string with the exported content of a code block. |