1
0
Fork 0
mirror of https://github.com/emacs-twist/org-babel.git synced 2025-03-05 16:27:07 +00:00

Merge pull request #5 from jordanisaacs/master

choose tangle header
This commit is contained in:
Akira Komamura 2024-07-03 21:24:26 +09:00 committed by GitHub
commit 8684ef7fcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
# Quick-and-dirty re-implementation of org-babel-tangle in Nix.
{ languages ? [ "emacs-lisp" "elisp" ]
, processLines ? lines: lines
, tangleArg ? "yes"
}:
string:
with builtins;
@ -26,7 +27,7 @@ let
(attrValues
(mapAttrs (name: value:
if name == ":tangle"
then value == "yes"
then value == tangleArg
else true
) attrs));