From d1355587c369361e5ff9012ef81992f5fdd90b25 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Mon, 6 Dec 2021 22:44:12 +0100 Subject: 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 --- local/bibli-paris/bibli-paris.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'local') 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) -- cgit v1.2.3