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
This commit is contained in:
Dan Davison 2011-02-07 22:23:56 +00:00
parent 9e8f1ddcd8
commit 88b793946b
1 changed files with 1 additions and 1 deletions

View File

@ -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.