From: Vladimir Lomov <lomov.vl@gmail.com>
To: Nick Dokos <nicholas.dokos@hp.com>
Cc: Emacs Org Mode Discussion list <emacs-orgmode@gnu.org>
Subject: Re: Problem with exporting TAB key
Date: Thu, 5 Apr 2012 13:43:31 +0900 [thread overview]
Message-ID: <20120405044331.GA1023@smoon> (raw)
In-Reply-To: <3418.1333599190@alphaville>
Hello,
** Nick Dokos [2012-04-05 00:13:10 -0400]:
> Vladimir Lomov <lomov.vl@gmail.com> 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
>> <<ex1>>
>> #+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)
next prev parent reply other threads:[~2012-04-05 4:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-05 2:10 Problem with exporting TAB key Vladimir Lomov
2012-04-05 4:13 ` Nick Dokos
2012-04-05 4:43 ` Vladimir Lomov [this message]
2012-04-05 5:01 ` Olaf Meeuwissen
2012-04-05 5:27 ` Vladimir Lomov
2012-04-06 1:34 ` Vladimir Lomov
2012-04-06 9:11 ` Bastien
2012-04-06 14:03 ` Vladimir Lomov
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120405044331.GA1023@smoon \
--to=lomov.vl@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).