Explorar o código

ditaa export: Improve a regular expression.

Carsten Dominik %!s(int64=16) %!d(string=hai) anos
pai
achega
f86ce238d7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contrib/lisp/org-exp-blocks.el

+ 1 - 1
contrib/lisp/org-exp-blocks.el

@@ -137,7 +137,7 @@ specified in BLOCKS which default to the value of
 	(goto-char (point-min))
 	(setf start (point))
 	(while (re-search-forward
-		"^#\\+begin_\\(\\S-+\\)[ \t]*\\(.*\\)?[\r\n]\\([^\000]*?\\)#\\+end_\\S-*[\r\n]" nil t)
+		"^#\\+begin_\\(\\S-+\\)[ \t]*\\(.*\\)?[\r\n]\\([^\000]*?\\)#\\+end_\\S-+.*" nil t)
 	  (save-match-data (setf type (intern (match-string 1))))
 	  (unless (memq type types) (setf types (cons type types)))
 	  (setf end (save-match-data (match-beginning 0)))