This says that

Noweb insertions now honor prefix characters that appear before <<reference>>.

And because of that trying to use

#+BEGIN_SRC clojure :noweb-ref dep-cljsbuild
[lein-figwheel "0.5.9"]
[lein-cljsbuild "1.1.5" :exclusions [[org.clojure/clojure]]]
#+END_SRC

with

:plugins [<<dep-cljsbuild>>]

gives me

:plugins [[lein-figwheel "0.5.9"]
:plugins [[lein-cljsbuild "1.1.5" :exclusions [[org.clojure/clojure]]]]

which is obviously not what I want. I can workaround issue by moving <<dep-cljsbuild>> to the new line, but it looks ugly.

Could you recommend any proper way to point org-mode that in particular place I don't want prefixes to be preserved? (Or at least how to disable it globally)

  • This does not appear possible to me in org. I would move the :plugins part into the noweb-ref block. The expansion is done by org-babel-expand-noweb-references. – John Kitchin Jun 11 at 3:14
#+BEGIN_SRC bash :noweb yes :results verbatim
  echo \
  <<example>>
#+END_SRC
  • 1
    Please consider explaining your code, to improve your answer. – Drew Nov 13 '17 at 1:51

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.