From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [bug, ox or ob?] something leaks tabs in src blocks Date: Mon, 26 Oct 2015 15:23:07 +0100 Message-ID: <878u6pzp2s.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqigB-0005ul-T9 for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 10:23:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqig8-0001nh-OI for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 10:23:19 -0400 Received: from plane.gmane.org ([80.91.229.3]:33483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqig8-0001lw-I7 for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 10:23:16 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zqig5-0008Sr-MG for emacs-orgmode@gnu.org; Mon, 26 Oct 2015 15:23:13 +0100 Received: from 62.80.108.9 ([62.80.108.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Oct 2015 15:23:13 +0100 Received: from rasmus by 62.80.108.9 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Oct 2015 15:23:13 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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!