diff options
| author | Stig Brautaset <stig@brautaset.org> | 2017-09-28 12:47:07 +0100 |
|---|---|---|
| committer | Stig Brautaset <stig@brautaset.org> | 2017-10-01 00:11:59 +0100 |
| commit | 065898bda5a25ca32cef8b0c427f2e3107e3e339 (patch) | |
| tree | 449ad374498b2a832b642bef78b868b72b34a020 | |
| parent | 1108c6de677eb6cbd268a63d53dfb75032acc678 (diff) | |
Don't insert the word "nil" in empty table cells
| -rw-r--r-- | ox-jira.el | 2 | ||||
| -rw-r--r-- | test/ox-jira-test.el | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -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 | |
