[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: [babel] [BUG] incorrect indentation when tangling with
From: |
Antti Kaihola |
Subject: |
Re: [Orgmode] Re: [babel] [BUG] incorrect indentation when tangling with org-src-preserve-indentation |
Date: |
Fri, 15 Oct 2010 10:14:49 +0300 |
2010/10/12 Dan Davison <address@hidden>:
> Thanks for the report and patches. I've just pushed a modification of
> your patch, along the lines of
>
> - "\n" (org-babel-trim body) "\n"))
> + "\n" (org-babel-trim body (if org-src-preserve-indentation "[\f\n\r\v]"))
> "\n"))
>
> Thus spaces and tabs should no longer be trimmed when
> `org-src-preserve-indentation' is non-nil. Hopefully this fixes things.
Yes, your patch along with Eric's fix seems to do the job. Python code
is now tangled correctly. Great!