From a561b3b77e922db5f059778e7b22171be05947b9 Mon Sep 17 00:00:00 2001 From: David Maus Date: Wed, 8 Feb 2012 19:27:32 +0100 Subject: [PATCH] Don't format tags in title if title headline does not have tags * org-exp.el (org-export-get-title-from-subtree): Don't format tags in title if title headline does not have tags. Fixes a bug reported by John Hendy in . --- lisp/org-exp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 581f0b745..ebb4d88ed 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -2205,7 +2205,7 @@ can work correctly." ;; This is a subtree, we take the title from the first heading (goto-char rbeg) (looking-at org-todo-line-tags-regexp) - (setq title (if (eq tags t) + (setq title (if (and (eq tags t) (match-string 4)) (format "%s\t%s" (match-string 3) (match-string 4)) (match-string 3))) (org-unmodified