Merge branch 'maint'
This commit is contained in:
commit
bed03c4b42
|
@ -494,10 +494,9 @@ non-nil, return the full association list to be used by
|
||||||
link)
|
link)
|
||||||
source-name
|
source-name
|
||||||
params
|
params
|
||||||
(org-unescape-code-in-string
|
|
||||||
(if org-src-preserve-indentation
|
(if org-src-preserve-indentation
|
||||||
(org-trim body t)
|
(org-trim body t)
|
||||||
(org-trim (org-remove-indentation body))))
|
(org-trim (org-remove-indentation body)))
|
||||||
comment)))
|
comment)))
|
||||||
(if only-this-block
|
(if only-this-block
|
||||||
(list (cons src-lang (list result)))
|
(list (cons src-lang (list result)))
|
||||||
|
|
|
@ -197,6 +197,31 @@ another block
|
||||||
(org-babel-tangle-jump-to-org)
|
(org-babel-tangle-jump-to-org)
|
||||||
(buffer-string)))))))
|
(buffer-string)))))))
|
||||||
|
|
||||||
|
(ert-deftest ob-tangle/nested-block ()
|
||||||
|
"Test tangling of org file with nested block."
|
||||||
|
(should
|
||||||
|
(string=
|
||||||
|
"#+begin_src org
|
||||||
|
,#+begin_src emacs-lisp
|
||||||
|
1
|
||||||
|
,#+end_src
|
||||||
|
#+end_src
|
||||||
|
"
|
||||||
|
(org-test-with-temp-text-in-file
|
||||||
|
"#+header: :tangle \"test-ob-tangle.org\"
|
||||||
|
#+begin_src org
|
||||||
|
,#+begin_src org
|
||||||
|
,,#+begin_src emacs-lisp
|
||||||
|
1
|
||||||
|
,,#+end_src
|
||||||
|
,#+end_src
|
||||||
|
#+end_src"
|
||||||
|
(unwind-protect
|
||||||
|
(progn (org-babel-tangle)
|
||||||
|
(with-temp-buffer (insert-file-contents "test-ob-tangle.org")
|
||||||
|
(buffer-string)))
|
||||||
|
(delete-file "test-ob-tangle.org"))))))
|
||||||
|
|
||||||
(provide 'test-ob-tangle)
|
(provide 'test-ob-tangle)
|
||||||
|
|
||||||
;;; test-ob-tangle.el ends here
|
;;; test-ob-tangle.el ends here
|
||||||
|
|
Loading…
Reference in New Issue