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)
|
||||
source-name
|
||||
params
|
||||
(org-unescape-code-in-string
|
||||
(if org-src-preserve-indentation
|
||||
(org-trim body t)
|
||||
(org-trim (org-remove-indentation body))))
|
||||
(org-trim (org-remove-indentation body)))
|
||||
comment)))
|
||||
(if only-this-block
|
||||
(list (cons src-lang (list result)))
|
||||
|
|
|
@ -197,6 +197,31 @@ another block
|
|||
(org-babel-tangle-jump-to-org)
|
||||
(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)
|
||||
|
||||
;;; test-ob-tangle.el ends here
|
||||
|
|
Loading…
Reference in New Issue