From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [bug, ox or ob?] something leaks tabs in src blocks
Date: Mon, 26 Oct 2015 15:23:07 +0100 [thread overview]
Message-ID: <878u6pzp2s.fsf@gmx.us> (raw)
Hi,
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.
Thanks,
Rasmus
--
El Rey ha muerto. ¡Larga vida al Rey!
next reply other threads:[~2015-10-26 14:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 14:23 Rasmus [this message]
2015-10-26 14:37 ` [bug, ox or ob?] something leaks tabs in src blocks Nicolas Goaziou
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=878u6pzp2s.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/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.