emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] source block exported with tabs replacing spaces?


From: Charles C. Berry
Subject: Re: [O] source block exported with tabs replacing spaces?
Date: Wed, 10 Jun 2015 07:36:34 -0700
User-agent: Alpine 2.11 (OSX 23 2013-08-11)

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

[Prev in Thread] Current Thread [Next in Thread]