Browse Source

org-babel: allow multiple spaces/tabs between "src" and lang

Dan Davison 15 years ago
parent
commit
512b376bb5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/babel/lisp/org-babel.el

+ 1 - 1
contrib/babel/lisp/org-babel.el

@@ -109,7 +109,7 @@ then run `org-babel-pop-to-session'."
 (defun org-babel-set-interpreters (var value)
   (set-default var value)
   (setq org-babel-src-block-regexp
-	(concat "^[ \t]*#\\+begin_src \\("
+	(concat "^[ \t]*#\\+begin_src[ \t]+\\("
 		(mapconcat 'regexp-quote value "\\|")
 		"\\)[ \t]*"
                 "\\([ \t]+\\([^\n]+\\)\\)?\n" ;; match header arguments