Add ability to remove #+begin_example blocks of output.
This commit is contained in:
parent
c2b255e0da
commit
bcfa3b95c7
|
@ -451,11 +451,15 @@ relies on `org-babel-insert-result'."
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(if (org-at-table-p)
|
(if (org-at-table-p)
|
||||||
(org-table-end)
|
(org-table-end)
|
||||||
(while (if (looking-at "\\(: \\|\\[\\[\\)")
|
(let ((case-fold-search nil))
|
||||||
(progn (while (looking-at "\\(: \\|\\[\\[\\)")
|
(if (looking-at-p "#\\+begin_example")
|
||||||
(forward-line 1)) t))
|
(search-forward "#+end_example" nil t)
|
||||||
(forward-line 1))
|
(progn
|
||||||
(forward-line -1)
|
(while (if (looking-at "\\(: \\|\\[\\[\\)")
|
||||||
|
(progn (while (looking-at "\\(: \\|\\[\\[\\)")
|
||||||
|
(forward-line 1)) t))
|
||||||
|
(forward-line 1))
|
||||||
|
(forward-line -1))))
|
||||||
(point))))
|
(point))))
|
||||||
|
|
||||||
(defun org-babel-result-to-file (result)
|
(defun org-babel-result-to-file (result)
|
||||||
|
|
Loading…
Reference in New Issue