org-babel: make tangling honour org-src-preserve-indentation
commite079584e5671144f91fba2f27f6c050aac296e9b
authorDan Davison <davison@stats.ox.ac.uk>
Thu, 8 Oct 2009 03:59:45 +0000 (7 23:59 -0400)
committerDan Davison <davison@stats.ox.ac.uk>
Thu, 8 Oct 2009 16:29:37 +0000 (8 12:29 -0400)
tree8cae57bf93c63ea1cee04264bda31f717d04974d
parent8dff317e33c7d7f46447d10025e25e61bc0f8b4b
org-babel: make tangling honour org-src-preserve-indentation

This allows python code to be tangled (i.e. extracted) correctly by
org-babel-tangle. Previously, if e.g. methods of a class were in
separate blocks, then they would be incorrectly indented as top-level
functions in the tangled output.
contrib/babel/lisp/org-babel.el