summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/org.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index d122184..9ce6471 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -14964,6 +14964,9 @@ When JUST-ALIGN is non-nil, only align tags."
org-tags-sort-function)
":")))
+ (if (or (string= ":" tags)
+ (string= "::" tags))
+ (setq tags ""))
(if (not (org-string-nw-p tags)) (setq tags "")
(unless (string-suffix-p ":" tags) (setq tags (concat tags ":")))
(unless (string-prefix-p ":" tags) (setq tags (concat ":" tags))))