aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStig Brautaset <stig@brautaset.org>2016-02-29 06:34:07 +0000
committerStig Brautaset <stig@brautaset.org>2016-02-29 06:34:07 +0000
commit57f93ca2a60831f375c1ee09a54c5ca4e3b01a07 (patch)
tree8774fb5d0c88ec99b9852d7bf2444ec2c56d6564 /test
parentc2a923fdd02962555a85ee4a7803cafbac8b7dfd (diff)
Protect [ and { in plain text
Diffstat (limited to 'test')
-rw-r--r--test/ox-jira-test.el4
-rw-r--r--test/ox-jira-test.org11
2 files changed, 14 insertions, 1 deletions
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