Ihor Radchenko <yanta...@posteo.net> writes: > Amy Grinn <grinn....@gmail.com> writes: > >>> I recommend the following: >>> >>> If the value starts from ", use Elisp's `read': >>> |"# <<" ">>" >>> (read (current-buffer)) ; => "# <<" >>> otherwise, consider read until the first whitespace. >>> |#<<; >>; >>> (re-search-forward (rx (1+ (not whitespace)))) >>> #<<;| >>> >>> However, there may be edge cases like > ...
Thinking about this more in the context of the past meetup discussion, maybe we can just go with two header arguments? :noweb-start :noweb-end? Or, alternatively, we can use a single string and a placeholder for the noweb reference name. Something like :noweb-wrap "# <<%s>>" -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>