From: Andreas Gerler Date: Mon, 19 Dec 2016 17:17:09 +0000 (+0100) Subject: ox-jira: fix for timestamp X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=517d8fbe8900bef1410ad3c326e2d1ae9625bc9e;p=emacsconfig.git ox-jira: fix for timestamp - kind of dirty but as Jira itself has nothing comparable it's better than not-implemented stuff. Signed-off-by: Andreas Gerler --- diff --git a/elpa/ox-jira-20161026.429/ox-jira.el b/elpa/ox-jira-20161026.429/ox-jira.el index 84523809..c93608c0 100644 --- a/elpa/ox-jira-20161026.429/ox-jira.el +++ b/elpa/ox-jira-20161026.429/ox-jira.el @@ -92,7 +92,7 @@ (table-cell . ox-jira-table-cell) (table-row . ox-jira-table-row) (target . (lambda (&rest args) (ox-jira--not-implemented 'target))) - (timestamp . (lambda (&rest args) (ox-jira--not-implemented 'timestamp))) + (timestamp . ox-jira-timestamp) (underline . ox-jira-underline) (verbatim . ox-jira-verbatim) (verse-block . (lambda (&rest args) (ox-jira--not-implemented 'verse-block)))) @@ -157,6 +157,12 @@ CONTENTS is the text with bold markup. INFO is a plist holding contextual information." (format "*%s*" contents)) +(defun ox-jira-timestamp (timestamp contents info) + "Transcode BOLD from Org to JIRA. +CONTENTS is the text with bold markup. INFO is a plist holding +contextual information." + (format "{color:red}%s{color}" (replace-regexp-in-string "[][]" "*" (org-ascii-plain-text (org-timestamp-translate timestamp) info)))) + (defun ox-jira-code (code _contents info) "Transcode a CODE object from Org to JIRA. CONTENTS is nil. INFO is a plist used as a communication