summaryrefslogtreecommitdiff
path: root/local
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-12-06 22:44:12 +0100
committerQuentin Aristote <quentin@aristote.fr>2021-12-06 22:44:12 +0100
commitd1355587c369361e5ff9012ef81992f5fdd90b25 (patch)
tree4a161a43b59f71b103660f741abaae1dda6cfd85 /local
parentb3e1b4cc8d0e6f49362954601c0898d41cdc3633 (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
Diffstat (limited to 'local')
-rw-r--r--local/bibli-paris/bibli-paris.el2
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)