org-export: Fix failing test

* testing/lisp/test-org-export.el: Fix failing test.
This commit is contained in:
Nicolas Goaziou 2013-01-30 21:32:50 +01:00
parent c1226e80d4
commit ed516e65dc
1 changed files with 8 additions and 7 deletions

View File

@ -561,13 +561,14 @@ body\n")))
(should
(equal "Body 1\nBody 2\n"
(org-test-with-backend test
(org-test-with-temp-text "* Headline 1\nBody 1\n* Headline 2\nBody 2"
(let ((org-export-before-parsing-hook
'((lambda (backend)
(org-map-entries
(lambda ()
(delete-region (point) (progn (forward-line) (point)))))))))
(org-export-as 'test)))))))
(org-test-with-temp-text "* Headline 1\nBody 1\n* Headline 2\nBody 2"
(let ((org-export-before-parsing-hook
'((lambda (backend)
(goto-char (point-min))
(while (re-search-forward org-outline-regexp-bol nil t)
(delete-region
(point-at-bol) (progn (forward-line) (point))))))))
(org-export-as 'test)))))))