From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug, ox or ob?] something leaks tabs in src blocks
Date: Mon, 26 Oct 2015 15:37:08 +0100 [thread overview]
Message-ID: <87vb9ty9uz.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <878u6pzp2s.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 26 Oct 2015 15:23:07 +0100")
Hello,
Rasmus <rasmus@gmx.us> writes:
> Consider the following example
>
> * test
> #+BEGIN_SRC R
> test <- function(index, funs, ...){
> if (missing(funs)) {
> funs <- list(
> "a" = funa,
> "b" = funb)}
>
> col <- vapply(funs, function(FUN) {
> do.call(FUN, list(index, ...))}, 1.0)
> col}
> #+END_SRC
>
> It includes no tabs. When exported with ox-latex or ox-ascii, but not
> ox-html, it has become something along the following, which at least at
> the time of posting contains tabs. When exporting via xelatex, tabs in
> verbatim shows up as "^^I".
>
> \begin{verbatim}
> test <- function(index, funs, ...){
> if (missing(funs)) {
> funs <- list(
> "a" = funa, # not really
> "b" = funb,
> "c" = func)}
>
> col <- vapply(funs, function(FUN) {
> do.call(FUN, list(index, ...))}, 1.0)
> col <- pretty_num(col, rounding = TRUE)
> names(col) <- names(funs)
> col}
> \end{verbatim}
>
> Does anyone know WHERE tabs are introduced so I can try to fix this? It
> seems by the time the src element reaches at least
> org-export-format-code-default it already contains tabs.
This is to be expected if `org-src-preserve-indentation' is nil (since
you didn't use the i flag) and `indent-tabs-mode' is non-nil.
See also <http://permalink.gmane.org/gmane.emacs.orgmode/101768>.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2015-10-26 14:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 14:23 [bug, ox or ob?] something leaks tabs in src blocks Rasmus
2015-10-26 14:37 ` Nicolas Goaziou [this message]
2015-10-26 15:15 ` Rasmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vb9ty9uz.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.