diff options
| author | Stig Brautaset <sbrautaset@laterpay.net> | 2016-02-26 17:44:46 +0000 |
|---|---|---|
| committer | Stig Brautaset <sbrautaset@laterpay.net> | 2016-02-26 17:44:46 +0000 |
| commit | f61b95bb5b8f7133f8f7f6ef348b384a577d3f72 (patch) | |
| tree | 1c4144b830e0045f8fe53afda366beb46970a1ae | |
| parent | 859a6006bac37820d45784563a4e145697980c12 (diff) | |
Make checkboxes look a bit more pleasing in the exported output
| -rw-r--r-- | ox-jira.el | 6 | ||||
| -rw-r--r-- | ox-jira.org | 6 | ||||
| -rw-r--r-- | test/ox-jira-test.el | 4 | ||||
| -rw-r--r-- | test/ox-jira-test.org | 4 |
4 files changed, 10 insertions, 10 deletions
@@ -144,9 +144,9 @@ contextual information." (let* ((parent (org-element-property :parent item)) (list-type (org-element-property :type parent)) (checkbox (case (org-element-property :checkbox item) - (on "{{[X]}} ") - (off "{{[ ]}} ") - (trans "{{[-]}} ")))) + (on "(/) ") + (off "(x) ") + (trans "(i) ")))) (concat (if (eq list-type 'ordered) "#" "*") " " diff --git a/ox-jira.org b/ox-jira.org index cc2fca3..7355af6 100644 --- a/ox-jira.org +++ b/ox-jira.org @@ -291,9 +291,9 @@ (let* ((parent (org-element-property :parent item)) (list-type (org-element-property :type parent)) (checkbox (case (org-element-property :checkbox item) - (on "{{[X]}} ") - (off "{{[ ]}} ") - (trans "{{[-]}} ")))) + (on "(/) ") + (off "(x) ") + (trans "(i) ")))) (concat (if (eq list-type 'ordered) "#" "*") " " diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 6c862da..8016bce 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -104,8 +104,8 @@ fum" 'jira)))) 3. fum" 'jira)))) (ert-deftest ox-jira-test/unordered-list-with-checkboxes() - (should (equal "* {{[ ]}} fi -* {{[X]}} fo + (should (equal "* (x) fi +* (/) fo " (org-export-string-as "- [ ] fi - [X] fo" 'jira)))) diff --git a/test/ox-jira-test.org b/test/ox-jira-test.org index 2cb6809..c02e2e3 100644 --- a/test/ox-jira-test.org +++ b/test/ox-jira-test.org @@ -201,8 +201,8 @@ #+BEGIN_SRC emacs-lisp (ert-deftest ox-jira-test/unordered-list-with-checkboxes() - (should (equal "* {{[ ]}} fi - ,* {{[X]}} fo + (should (equal "* (x) fi + ,* (/) fo " (org-export-string-as "- [ ] fi - [X] fo" 'jira)))) #+END_SRC |
