Trying to pass multiline argument to Org code block. If make direct call of block then it's Ok. But when call it through noweb ref then Error raised
#+NAME: pr
#+BEGIN_SRC elisp :results value :var n="a\nb\nc"
"%p" n
#+END_SRC
#+RESULTS: pr
: a
: b
: c
#+BEGIN_SRC elisp :noweb yes :results value
<<pr("a\nb\nc")>>
#+END_SRC
eval: Symbol’s value as variable is void: a
I need this to be able to use pr
block with another noweb call already in SQL like this
insert into table
select @SPID, <<pr("1\n2\n3\n4")>>
proposing to get string executed in sqlcmd
select @SPID, 1
select @SPID, 2
select @SPID, 3
select @SPID, 4