Explorar o código

org-icalendar.el: exclude tags from the summary of the ical entry.

This was reported by Guy Wiener <wiener.guy@gmail.com>.

http://article.gmane.org/gmane.emacs.orgmode/29819
Bastien Guerry %!s(int64=15) %!d(string=hai) anos
pai
achega
373224ecdb
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      lisp/org-icalendar.el

+ 3 - 1
lisp/org-icalendar.el

@@ -311,7 +311,9 @@ When COMBINE is non nil, add the category to each line."
 		inc t
 		hd (condition-case nil
 		       (org-icalendar-cleanup-string
-			(org-get-heading))
+			(replace-regexp-in-string 
+			 ":[[:alnum:]_@#%:]+:[ \t]*$" ""
+			 (org-get-heading)))
 		     (error (throw :skip nil)))
 		summary (org-icalendar-cleanup-string
 			 (org-entry-get nil "SUMMARY"))