aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStig Brautaset <sbrautaset@laterpay.net>2016-03-22 13:55:11 +0000
committerStig Brautaset <sbrautaset@laterpay.net>2016-03-22 13:55:11 +0000
commited2e320ea392a59461d0fd4474ae98d7b9b2bbd6 (patch)
tree5ea575514e32a620960a517fa29423e666f6ce6d /test
parenta1d4878494f19e86e25785181126999e01b921a0 (diff)
Basic support for fixed-width text
I use this for very short log line snippets etc.
Diffstat (limited to 'test')
-rw-r--r--test/ox-jira-test.el11
-rw-r--r--test/ox-jira-test.org17
2 files changed, 28 insertions, 0 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el
index 6c03e89..542c259 100644
--- a/test/ox-jira-test.el
+++ b/test/ox-jira-test.el
@@ -203,6 +203,17 @@ formatted
#+end_example
" 'jira))))
+(ert-deftest ox-jira-test/fixed-width-blocks ()
+ (should (equal "{noformat}
+stuff that should
+ not be
+formatted
+{noformat}
+" (org-export-string-as ": stuff that should
+: not be
+: formatted
+" 'jira))))
+
(ert-deftest ox-jira-test/footnotes ()
(should (equal "fi fo{anchor:backfn1}[^1^|#fn1]. Another one{anchor:backfn2}[^2^|#fn2].
diff --git a/test/ox-jira-test.org b/test/ox-jira-test.org
index 1d9fabf..779c355 100644
--- a/test/ox-jira-test.org
+++ b/test/ox-jira-test.org
@@ -327,6 +327,23 @@
" 'jira))))
#+END_SRC
+** Fixed-width
+
+ Fixed-width text is used for short log snippets etc.
+
+ #+BEGIN_SRC emacs-lisp
+ (ert-deftest ox-jira-test/fixed-width-blocks ()
+ (should (equal "{noformat}
+ stuff that should
+ not be
+ formatted
+ {noformat}
+ " (org-export-string-as ": stuff that should
+ : not be
+ : formatted
+ " 'jira))))
+ #+END_SRC
+
** Footnotes
#+BEGIN_SRC emacs-lisp