diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-12-06 22:44:12 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-12-06 22:44:12 +0100 |
| commit | d1355587c369361e5ff9012ef81992f5fdd90b25 (patch) | |
| tree | 4a161a43b59f71b103660f741abaae1dda6cfd85 | |
| parent | b3e1b4cc8d0e6f49362954601c0898d41cdc3633 (diff) | |
modify import-from-csv to only toggle tags when some tags were specified
thus when there are no tags no "::" is appended to the heading
| -rw-r--r-- | local/bibli-paris/bibli-paris.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/local/bibli-paris/bibli-paris.el b/local/bibli-paris/bibli-paris.el index 0e32dce..c7d399e 100644 --- a/local/bibli-paris/bibli-paris.el +++ b/local/bibli-paris/bibli-paris.el @@ -351,7 +351,7 @@ inserting the heading." (if (not (string-equal formatted-value "")) (org-set-property formatted-key formatted-value)))) keys row) - (org-toggle-tag tags 'on))) + (when tags (org-toggle-tag tags 'on)))) (defun bibli-paris/insert-or-update-csv-entries (keys rows recnum-lines &optional tags state) |
