diff options
| author | Daniel Ziltener <dziltener@lyrion.ch> | 2022-11-06 21:08:06 +0100 |
|---|---|---|
| committer | Ihor Radchenko <yantar92@posteo.net> | 2022-11-07 10:54:13 +0800 |
| commit | 5e0c5c186dc151a2a2447a52c57f0db5b501a17b (patch) | |
| tree | 2e23ef242c86e0ba2dcf60c1362cd826f9553576 /etc/ORG-NEWS | |
| parent | 26a2811b06a5916a66d101b10238552db12ff6e7 (diff) | |
| download | org-mode-5e0c5c186dc151a2a2447a52c57f0db5b501a17b.tar.gz | |
org-babel: Add new "strip-tangle" :noweb argument value
* lisp/ob-tangle.el (org-babel-tangle-single-block): Strip noweb tags
from block if :noweb has been set to "strip-tangle".
* lisp/ob-core.el (org-babel-common-header-args-w-values): Add
"strip-tangle" as new allowed value.
* lisp/ob-core.el (org-babel-noweb-p): Add "strip-tangle" at the
appropriate positions.
* testing/lisp/test-ob-tangle.el (ob-tangle/strip-tangle): Add new test
case for "strip-tangle".
* doc/org-manual.org (Noweb Reference Syntax): Adjust documentation for
the noweb header argument.
* etc/ORG-NEWS: Add entry for new header argument value.
This patch adds the "strip-tangle" option for the :noweb header
argument. This strips the noweb tags before tangling the block. This can
be useful for e.g. testing purposes where one wants to use a block as
test case that can be both run inline as well as tangled into a file for
automated testing.
TINYCHANGE
Diffstat (limited to 'etc/ORG-NEWS')
| -rw-r--r-- | etc/ORG-NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index b542da3..ca19446 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -228,6 +228,11 @@ commands. =:noweb-prefix= can be set to =no= to prevent the prefix characters from being repeated when expanding a multiline noweb reference. +*** New =:noweb= babel header argument value =strip-tangle= + +=:noweb= can be set to =strip-tangle= to strip the noweb syntax references +before tangling. + *** New LaTeX source block backend using =engraved-faces-latex= When ~org-latex-src-block-backend~ is set to ~engraved~, |
