I have an Org document, with two source blocks containing YAML:

#+BEGIN_SRC yaml :tangle actual.yaml - foo: - spam - eggs #+END_SRC #+BEGIN_SRC yaml :tangle actual.yaml - bacon: - spam - spam - baked beans #+END_SRC 

When I tangle, I want this output:

- foo: - spam - eggs - bacon: - spam - spam - baked beans 

But what I get is this; the second block is dedented, which produces broken output:

- foo: - spam - eggs - bacon: - spam - spam - baked beans 

Is there some way to get Org to preserve whitespace in source blocks?

submitted by /u/ieure
[link] [comments]