Hi Samuel, Samuel Wales wrote: > On 8/12/13, Sebastien Vauban <sva-n...@mygooglest.com> 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--- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Test.</title> ... </head> <body> <div id="preamble"> </div> <div id="content"> <h1 class="title">Test.</h1> <pre class="example"> PR /////////\\\\\\\\\ </pre> ... </html> --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