forked from mirrors/org-mode
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:
parent
9e8f1ddcd8
commit
88b793946b
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue