From: Miguel Ruiz <rbenit68@yahoo.es>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: DOS (CRLF) EOL in org-ascii-export-to-ascii
Date: Mon, 14 Oct 2013 12:08:24 +0100 (BST) [thread overview]
Message-ID: <1381748904.34409.YahooMailNeo@web172805.mail.ir2.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]
Hi,
I have the following working script in a windows box (emacs 24.3, org-version 7.9.3f-17) to produce an ascii file:
emacs.exe -Q -batch --load=report.el --visit=file.org --funcall org-babel-execute-buffer --funcall org-export-as-latin1
file.org is an unix EOL file.
report.el contains:
(require 'cl)
(require 'org)
(setq org-table-number-fraction 0.2)
(org-babel-lob-ingest "lob-table-operations.org")
(add-hook 'org-babel-after-execute-hook 'org-table-recalculate-buffer-tables)
(setq org-confirm-babel-evaluate nil)
(setq org-export-html-postamble nil)
And it creates an ascii file with dos EOL (CRLF), i.e., it opens in notepad.exe perfectly formatted.
Now I want to upgrade to the new Org 8.x, and I substitute org-export-as-latin1 with org-ascii-export-to-ascii: I get the same output content, but with unix EOL
I would appreciate any hint to get the desired output, i.e., CRLF EOL. In my box, emacs.exe -Q saves new files with CRLF EOL.
Sincerely
Miguel Ruiz.
Sevilla (Spain)
[-- Attachment #2: Type: text/html, Size: 4040 bytes --]
next reply other threads:[~2013-10-14 11:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-14 11:08 Miguel Ruiz [this message]
2013-10-14 14:24 ` DOS (CRLF) EOL in org-ascii-export-to-ascii Nicolas Goaziou
2013-10-14 16:44 ` Miguel Ruiz
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=1381748904.34409.YahooMailNeo@web172805.mail.ir2.yahoo.com \
--to=rbenit68@yahoo.es \
--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 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).