From 57f93ca2a60831f375c1ee09a54c5ca4e3b01a07 Mon Sep 17 00:00:00 2001 From: Stig Brautaset Date: Mon, 29 Feb 2016 06:34:07 +0000 Subject: Protect [ and { in plain text --- test/ox-jira-test.el | 4 ++++ test/ox-jira-test.org | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 236915e..455a605 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -142,6 +142,10 @@ fum" 'jira)))) " (org-export-string-as "- fi :: fo - fa :: fum" 'jira)))) +(ert-deftest ox-jira-test/plain-text () + (should (equal "fi fo \\[fa] fum +" (org-export-string-as "fi fo [fa] fum" 'jira)))) + (ert-deftest ox-jira-test/src-blocks () (should (equal "{code:none} echo hello diff --git a/test/ox-jira-test.org b/test/ox-jira-test.org index c0c5400..47595e6 100644 --- a/test/ox-jira-test.org +++ b/test/ox-jira-test.org @@ -255,6 +255,16 @@ - fa :: fum" 'jira)))) #+END_SRC +** Plain text + + Check that certain characters are escaped. + + #+BEGIN_SRC emacs-lisp + (ert-deftest ox-jira-test/plain-text () + (should (equal "fi fo \\[fa] fum + " (org-export-string-as "fi fo [fa] fum" 'jira)))) + #+END_SRC + ** Source code I use Org mode for literate programming, and executable lab notes, so we @@ -312,7 +322,6 @@ " 'jira)))) #+END_SRC - ** Examples I use example blocks for log & config file snippets, and output from -- cgit v1.2.3