aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Brautaset <stig@brautaset.org>2017-09-28 12:47:07 +0100
committerStig Brautaset <stig@brautaset.org>2017-10-01 00:11:59 +0100
commit065898bda5a25ca32cef8b0c427f2e3107e3e339 (patch)
tree449ad374498b2a832b642bef78b868b72b34a020
parent1108c6de677eb6cbd268a63d53dfb75032acc678 (diff)
Don't insert the word "nil" in empty table cells
-rw-r--r--ox-jira.el2
-rw-r--r--test/ox-jira-test.el7
2 files changed, 8 insertions, 1 deletions
diff --git a/ox-jira.el b/ox-jira.el
index fd3887d..d1fd430 100644
--- a/ox-jira.el
+++ b/ox-jira.el
@@ -492,7 +492,7 @@ contextual information."
(group (org-export-table-row-group row info))
(is-header (and has-header (eq 1 group)))
(sep (if is-header "||" "|")))
- (format "%s %s %s" sep contents
+ (format "%s %s %s" sep (if contents contents "")
(if (org-export-last-sibling-p table-cell info) sep ""))))
;; This is updated to show progress of subsequent list of check boxes.
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el
index d3f75ee..8ac4a7b 100644
--- a/test/ox-jira-test.el
+++ b/test/ox-jira-test.el
@@ -301,6 +301,13 @@ END;
| c | d |
")))
+ (should (equal "| | b |
+| c | |
+" (to-jira "
+| | b |
+| c | |
+")))
+
;; This should really be
;; : || a || b ||
;; : | c | d |