On Wed, 10 Jun 2015, Alan Schmitt wrote:

Hello,

I'm working on a presentation and I noticed that some of my source
blocks have spaces exported as tabs. Here is an example:

#+begin_src js :wrap center :results output :exports both
console.log((![]+[])[+!+[]]+
            (![]+[])[!+[]+!+[]]+
            (![]+[])[+!+[]]+
            ([][[]]+[])[+!+[]])
#+end_src

get exported to the following latex code
\begin{minted}[frame=lines,fontsize=\scriptsize]{js}
console.log((![]+[])[+!+[]]+
            (![]+[])[!+[]+!+[]]+
            (![]+[])[+!+[]]+
            ([][[]]+[])[+!+[]])
\end{minted}

(Note the tabs instead of the 8 spaces). I have `indent-tabs-mode' set
to nil in both the file and the exporter setting (I'm using the
asynchronous exporter with a specified file).

How can I tell org to preserve the spaces?


Customize `org-src-preserve-indentation'

HTH,

Chuck

Reply via email to