From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: Problem with exporting TAB key Date: Thu, 5 Apr 2012 13:43:31 +0900 Message-ID: <20120405044331.GA1023@smoon> References: <3418.1333599190@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFeXs-0007Uc-5Z for emacs-orgmode@gnu.org; Thu, 05 Apr 2012 00:43:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFeXq-0004ew-7k for emacs-orgmode@gnu.org; Thu, 05 Apr 2012 00:43:39 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:47808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFeXp-0004es-UR for emacs-orgmode@gnu.org; Thu, 05 Apr 2012 00:43:38 -0400 Received: by bkwq16 with SMTP id q16so1123033bkw.0 for ; Wed, 04 Apr 2012 21:43:35 -0700 (PDT) Content-Disposition: inline In-Reply-To: <3418.1333599190@alphaville> 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: Nick Dokos Cc: Emacs Org Mode Discussion list Hello, ** Nick Dokos [2012-04-05 00:13:10 -0400]: > Vladimir Lomov wrote: >> #+TITLE: Problem with exporting TAB key >> #+AUTHOR: Vladimir Lomov >> * How to make TAB key to be exported from ORG document? >> Consider the following example: >> #+name: ex1 >> #+BEGIN_SRC sh :exports code >> sort -t " " -k 3 -o file2 file1 >> sort -t " " -k 3 -o file3 file >> #+END_SRC >> How I inserting the TAB key in example: for first line I use =C-q >> C-I=, for second line I use =C-q TAB=, but in tangled file and in >> exported HTML document it is NOT a TAB just spaces. >> How to force export and tangle functions not to convert TAB to spaces? > You can't: org-export-preprocess-string (in lisp/org-exp.el) contains a > call to untabify: > (untabify (point-min) (point-max)) Now I understand why I get such results. > which converts tabs to spaces, no questions asked. I don't know why that > is, so maybe Bastien or Carsten can tell us the reason. I would be glad to hear the reason. > If you are feeling adventurous, you might want to try commenting out > that call and see what, if anything, breaks. I can do other thing: use another symbol to separate fields (I'm writing a script using literate programming approach and ORG, so it is a matter of taste what to use as separator), but I'll try your suggestion also. > Nick Thanks Nick. >> * COMMENT >> #+BEGIN_SRC sh :tangle ex.sh :shebang "#!/bin/bash" :noweb yes >> <> >> #+END_SRC P.S. I noticed that you send message to my e-mail directly and CC to mailing list. Is it "good practice" or just a habit? I thought that answering to ML only is enough. --- WBR, Vladimir Lomov -- Why use Windows, since there is a door? (By fachat@galileo.rhein-neckar.de, Andre Fachat)