From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: example blocks remove initial whitespace Date: Wed, 14 Aug 2013 07:43:00 +0200 Message-ID: <864nas3k0r.fsf@somewhere.org> References: <864nav4a02.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Samuel, Samuel Wales wrote: > On 8/12/13, Sebastien Vauban wrote: >> Try the following: >> >> ;; preserve spaces and `tab' characters in source code blocks >> (setq org-src-preserve-indentation t) > > That did not work for me. Does that work for you? With the minimal Emacs config file: --8<---------------cut here---------------start------------->8--- ;; .emacs-minimal.el ;; preserve spaces and `tab' characters in source code blocks (setq org-src-preserve-indentation t) (message "(info) Loading `%s'...done" load-file-name) ;;; .emacs-minimal.el ends here --8<---------------cut here---------------end--------------->8--- and the minimal test file: --8<---------------cut here---------------start------------->8--- Test. #+BEGIN_EXAMPLE PR /////////\\\\\\\\\ #+END_EXAMPLE --8<---------------cut here---------------end--------------->8--- I get the following: --8<---------------cut here---------------start------------->8--- Test. ...

Test.

                         PR
                 /////////\\\\\\\\\
... --8<---------------cut here---------------end--------------->8--- when exporting with the default Org bundled with GNU Emacs 24.2.91.1 (i386-mingw-nt6.2.9200) of 2012-12-15 on MS-W7-DANI, that is: Org-mode version 7.9.2+ (7.9.2+-GNU-Emacs-24-3 (commit 488eea) @ c:/Program Files (x86)/emacs-24.2.91/lisp/org/) Best regards, Seb -- Sebastien Vauban