Merge branch 'maint'
This commit is contained in:
commit
379e2b1bea
|
@ -1119,14 +1119,22 @@ body\n")))
|
||||||
;; Provide correct back-end if transcoder needs to use recursive
|
;; Provide correct back-end if transcoder needs to use recursive
|
||||||
;; calls anyway.
|
;; calls anyway.
|
||||||
(should
|
(should
|
||||||
(equal "Success"
|
(equal "Success\n"
|
||||||
(let (org-export--registered-backends)
|
(let ((test-back-end
|
||||||
(org-export-define-backend 'test
|
(org-export-create-backend
|
||||||
'((plain-text . (lambda (bold contents info) "Success"))
|
:transcoders
|
||||||
(headline . (lambda (headline contents info)
|
'((headline . (lambda (headline contents info)
|
||||||
(org-export-data
|
(org-export-data
|
||||||
(org-element-property :title headline))))))
|
(org-element-property :title headline)
|
||||||
(org-export-with-backend 'test "* Test")))))
|
info)))
|
||||||
|
(plain-text . (lambda (text info) "Success"))))))
|
||||||
|
(org-export-string-as
|
||||||
|
"* Test"
|
||||||
|
(org-export-create-backend
|
||||||
|
:transcoders
|
||||||
|
'((headline . (lambda (headline contents info)
|
||||||
|
(org-export-with-backend
|
||||||
|
test-back-end headline contents info))))))))))
|
||||||
|
|
||||||
(ert-deftest test-org-export/data-with-backend ()
|
(ert-deftest test-org-export/data-with-backend ()
|
||||||
"Test `org-export-data-with-backend' specifications."
|
"Test `org-export-data-with-backend' specifications."
|
||||||
|
|
Loading…
Reference in New Issue