[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [patch, ox] suppress title
From: |
Rasmus |
Subject: |
Re: [O] [patch, ox] suppress title |
Date: |
Thu, 12 Feb 2015 01:10:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Nicolas Goaziou <address@hidden> writes:
> Could you also add a test in `test-org-export/handle-options'?
How would I make this test proper? I can't use org-test-default-backend
since it only loads the transcoder functions, not the template which is
where I disable the title. I can think of the following or writing a mini
template that just check :with-title, but that feels like cheating...
;; Test title.
(should
(equal ""
(org-test-with-temp-text "#+TITLE: foo"
(org-export-as
(org-export-create-backend
:transcoders
'((title . org-org-identity)
(template . org-org-template)))
nil nil nil
'(:with-title nil :with-creator nil
:with-author nil :with-date nil
:time-stamp-file nil)))))
(should
(equal "#+TITLE: foo"
(org-trim
(org-test-with-temp-text
"#+TITLE: foo"
(org-export-as
(org-export-create-backend
:transcoders
'((title . org-org-identity)
(template . org-org-template)))
nil nil nil
'(:with-title t :with-creator nil
:with-author nil :with-date nil
:time-stamp-file nil))))))
--
With monopolies the cake is a lie!