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

org-babel: change regexp parsing of #+srcname line

One thing that was going wrong was that if #+srcname: was provided
with no subsequent name, the name was taken from the next line.
Dan Davison преди 15 години
родител
ревизия
ab7a58aaff
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      contrib/babel/lisp/org-babel.el

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

@@ -317,7 +317,7 @@ one function which returns more data than just the name. [Eric]"
                 ;; the second match of this regexp is used later to
                 ;; find arguments in the "functional" style, where
                 ;; they are passed as part of the source name line
-		(looking-at "#\\+srcname:[ \f\t\n\r\v]*\\([^ ()\f\t\n\r\v]+\\)\\(\(\\(.*\\)\)\\|\\)"))
+		(looking-at "#\\+srcname:[ \t]*\\([^ ()\f\t\n\r\v]+\\)\\(\(\\(.*\\)\)\\|\\)"))
 	      (org-babel-clean-text-properties (match-string 1)))))))
 
 (defun org-babel-get-src-block-info ()