Преглед на файлове

`org-get-refile-targets': trim multiple [%] and [/] cookies.

Bastien Guerry преди 14 години
родител
ревизия
00fadebf9c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -9899,7 +9899,7 @@ on the system \"/user@host:\"."
 			 (setq level (org-reduced-level
 				      (- (match-end 1) (match-beginning 1)))
 			       txt (org-link-display-format (match-string 4))
-			       txt (replace-regexp-in-string " *\[[0-9]+/?[0-9]*%?\]$" "" txt)
+			       txt (replace-regexp-in-string "\\( *\[[0-9]+/?[0-9]*%?\]\\)+$" "" txt)
 			       re (format org-complex-heading-regexp-format
 					  (regexp-quote (match-string 4))))
 			 (when org-refile-use-outline-path