diff options
| author | AblatedSprocket <21965618+AblatedSprocket@users.noreply.github.com> | 2020-12-02 10:58:50 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-02 16:58:50 +0000 |
| commit | 0bd966ba241a2458d5097e256543eceee50d462c (patch) | |
| tree | e974c11b01a310a7b4fb6bd678c5fb8376a2112b | |
| parent | 64d364cf08109e6877b74c0aa2c4ef690fe9501b (diff) | |
Better support for mentioning users in comments (#57)
| -rw-r--r-- | ox-jira.el | 2 | ||||
| -rw-r--r-- | ox-jira.org | 2 | ||||
| -rw-r--r-- | test/ox-jira-test.el | 5 |
3 files changed, 7 insertions, 2 deletions
@@ -331,6 +331,8 @@ INFO is a plist holding contextual information. See (path (cond ((member type '("http" "https" "ftp" "mailto" "doi")) (concat type ":" raw-path)) + ((string-prefix-p "~accountid" raw-path) + raw-path) ((string= type "file") (org-export-file-uri raw-path)) ((string= type "custom-id") diff --git a/ox-jira.org b/ox-jira.org index a39c81e..c0c4d53 100644 --- a/ox-jira.org +++ b/ox-jira.org @@ -554,6 +554,8 @@ INFO is a plist holding contextual information. See (path (cond ((member type '("http" "https" "ftp" "mailto" "doi")) (concat type ":" raw-path)) + ((string-prefix-p "~accountid" raw-path) + raw-path) ((string= type "file") (org-export-file-uri raw-path)) ((string= type "custom-id") diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 168a40d..3cbaffd 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -142,8 +142,9 @@ h1. {color:red}{{TODO}}{color} This is another headline {color:blue}{{:FOO:BAR:} (should (equal "see [#Heading Name] for details\n" (to-jira "see [[#Heading Name]] for details"))) (should (equal "see [This Thing|#This Thing] for details\n" - (to-jira "see [[#Heading Name][This Thing]] for details")))) - + (to-jira "see [[#Heading Name][This Thing]] for details"))) + (should (equal "contact [User Name|~accountid:accountid] for details\n" + (to-jira "contact [[~accountid:accountid][User Name]] for details\n")))) ;; Check that text in paragraphs does not have hard newlines. ;; (ert-deftest ox-jira-test/paragraphs () |
