summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <eric.schulte@gmx.com>2012-01-30 18:27:33 -0700
committerEric Schulte <eric.schulte@gmx.com>2012-01-30 18:27:33 -0700
commit7b59410c30a7ef77a84d36f625fe7fc648f99fa6 (patch)
tree325583020f1038f49ebd0560bd43d5dcb211c4a5
parent794319dfd9f11827ca0fce2043dfa95547eafe84 (diff)
downloadorg-mode-7b59410c30a7ef77a84d36f625fe7fc648f99fa6.tar.gz
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.
-rw-r--r--lisp/ob.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index 88d92ea..3616b0b 100644
--- a/lisp/ob.el
+++ b/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)))