[Orgmode] org-babel-tangle indentation

2009-10-08 Thread Chris Gray
Hi, I've been using org-babel for a couple of weeks now and I really like it for programming. One thing I've noticed, though, is that source blocks are not indented when they are output by org-babel-tangle. This makes the output source hard to read, and incorrect for languages where indentation

Re: [Orgmode] org-babel-tangle indentation

2009-10-08 Thread Eric Schulte
Hi Chris, You have touched upon a true limitation in the current tangle functionality. I think this issue has two parts (one of which you address below). 1) it is impossible to specify a piece of heavily indented code in a source-code block. For example --8---cut

Re: [Orgmode] org-babel-tangle indentation

2009-10-08 Thread Dan Davison
Chris, Eric -- Coincidentally, I think the email I just sent to the list provides a solution to these issues. I've also been using org-babel-tangle to write a python program this week. I've been finding it very helpful merely using basic org mode features such as folding and restructuring to