فهرست منبع

don't allow newlines in source names in noweb references

* lisp/ob.el (org-babel-expand-noweb-references): Don't allow newlines
  in source names in noweb references.
Eric Schulte 13 سال پیش
والد
کامیت
7b59410c30
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -2150,7 +2150,7 @@ block but are passed literally to the \"example-block\"."
       (with-temp-buffer
         (insert body) (goto-char (point-min))
         (setq index (point))
-        (while (and (re-search-forward "<<\\([^ \t].+?[^ \t]\\|[^ \t]\\)>>"
+        (while (and (re-search-forward "<<\\([^ \t\n].+?[^ \t\n]\\|[^ \t\n]\\)>>"
 				       nil t))
           (save-match-data (setf source-name (match-string 1)))
           (save-match-data (setq evaluate (string-match "\(.*\)" source-name)))