emacs/var/elfeed/db/data/2f/2fcd3e1634568ec48563013226cade2bfc973d5c
2022-01-03 12:49:32 -06:00

1 line
1,013 B
Plaintext

<!-- SC_OFF --><div class="md"><p>I have an Org document, with two source blocks containing YAML:</p> <pre><code>#+BEGIN_SRC yaml :tangle actual.yaml - foo: - spam - eggs #+END_SRC #+BEGIN_SRC yaml :tangle actual.yaml - bacon: - spam - spam - baked beans #+END_SRC </code></pre> <p>When I tangle, I want this output:</p> <pre><code>- foo: - spam - eggs - bacon: - spam - spam - baked beans </code></pre> <p>But what I get is this; the second block is dedented, which produces broken output:</p> <pre><code>- foo: - spam - eggs - bacon: - spam - spam - baked beans </code></pre> <p>Is there some way to get Org to preserve whitespace in source blocks?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/ieure"> /u/ieure </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/rhhf5g/preserve_indent_when_tangling_yaml/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/rhhf5g/preserve_indent_when_tangling_yaml/">[comments]</a></span>