From cbd6b317980a63cdac8124499bab29dee8f0b0ae Mon Sep 17 00:00:00 2001 From: Stig Brautaset Date: Fri, 26 Feb 2016 08:14:19 +0000 Subject: Add support for example blocks --- test/ox-jira-test.el | 13 +++++++++++++ test/ox-jira-test.org | 22 +++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 07fc442..a8d250a 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -107,6 +107,19 @@ echo hello #+end_src " 'jira)))) +(ert-deftest ox-jira-test/example-blocks () + (should (equal "{noformat} +stuff that should + not be +formatted +{noformat} +" (org-export-string-as "#+begin_example +stuff that should + not be +formatted +#+end_example +" 'jira)))) + (provide 'ox-jira-test) ;;; ox-jira.el-test.el ends here diff --git a/test/ox-jira-test.org b/test/ox-jira-test.org index 5752b0c..f54f7c2 100644 --- a/test/ox-jira-test.org +++ b/test/ox-jira-test.org @@ -191,7 +191,27 @@ echo hello # echo world ,#+end_src - " 'jira)))) + " 'jira)))) + #+END_SRC + +** Examples + + I use example blocks for log & config file snippets, and output from + programs. + + #+BEGIN_SRC emacs-lisp + (ert-deftest ox-jira-test/example-blocks () + (should (equal "{noformat} + stuff that should + not be + formatted + {noformat} + " (org-export-string-as "#+begin_example + stuff that should + not be + formatted + ,#+end_example + " 'jira)))) #+END_SRC ** Provide -- cgit v1.2.3