[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [bug][babel] noweb gotcha
From: |
Charles Berry |
Subject: |
[O] [bug][babel] noweb gotcha |
Date: |
Wed, 11 Jun 2014 03:30:44 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
The following
,----
| #+PROPERTY: tangle yes
|
| #+NAME: print-abc
| #+BEGIN_SRC emacs-lisp
| (format
| "<<%s>>" "abc")
| #+END_SRC
|
| #+NAME: print-def
| #+BEGIN_SRC emacs-lisp
| (concat
| "<<" "def" ">>")
| #+END_SRC
|
| #+BEGIN_SRC emacs-lisp :noweb yes
| <<print-abc>>
| <<print-def>>
| #+END_SRC
`----
tangles as
,----
| (format
| "<<%s>>" "abc")
|
| (concat
| "<<" "def" ">>")
|
| (format
| "<<%s>>" "abc")
| (concat
| "")
`----
Note that ""<<" "def" ">>" disappeared from (concat ...).
FWIW, adding quotes inside the constant string in org-babel-noweb-wrap:
"\\([^ \"\t\n][^\"]+?[^ \"\t]\\|[^ \"\t\n]\\)"
fixes this instance.
HTH,
Chuck
- [O] [bug][babel] noweb gotcha,
Charles Berry <=