From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ruiz Subject: DOS (CRLF) EOL in org-ascii-export-to-ascii Date: Mon, 14 Oct 2013 12:08:24 +0100 (BST) Message-ID: <1381748904.34409.YahooMailNeo@web172805.mail.ir2.yahoo.com> Reply-To: Miguel Ruiz Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-2146765041-1583348380-1381748904=:34409" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVg0n-0002mG-Fr for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 07:08:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVg0h-0006Hn-7I for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 07:08:33 -0400 Received: from nm8-vm1.bullet.mail.ird.yahoo.com ([77.238.189.198]:42574) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1VVg0g-0006FF-Po for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 07:08:27 -0400 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" ---2146765041-1583348380-1381748904=:34409 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=0AI have the following working script in a windows box (emacs 24.3, = org-version 7.9.3f-17) to produce an ascii file:=0A=0Aemacs.exe -Q -batch -= -load=3Dreport.el --visit=3Dfile.org =A0--funcall org-babel-execute-buffer = --funcall org-export-as-latin1=0A=0A=0Afile.org is an unix EOL file.=0A=0Ar= eport.el contains:=0A=0A(require 'cl)=0A(require 'org)=0A=0A(setq org-table= -number-fraction 0.2)=0A(org-babel-lob-ingest "lob-table-operations.org")= =0A(add-hook 'org-babel-after-execute-hook 'org-table-recalculate-buffer-ta= bles)=A0=0A=0A(setq org-confirm-babel-evaluate nil)=0A(setq org-export-html= -postamble nil)=0A=0AAnd it creates an ascii file with dos EOL (CRLF), i.e.= , it opens in notepad.exe perfectly formatted.=0A=0ANow I want to upgrade t= o the new Org 8.x, and I substitute org-export-as-latin1 with org-ascii-exp= ort-to-ascii: I get the same output content, but with unix EOL=0A=0A=0AI wo= uld appreciate any hint to get the desired output, i.e., CRLF EOL. In my bo= x, emacs.exe -Q saves new files with CRLF EOL.=0A=0ASincerely=0A=0AMiguel R= uiz.=0ASevilla (Spain)=0A ---2146765041-1583348380-1381748904=:34409 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I have the following working script= in a windows box (emacs 24.3, org-version 7.9.3f-17) to produce an ascii f= ile:

emacs.exe -Q -bat= ch --load=3Dreport.el --visit=3Dfile.org  --funcall org-babel-execute-= buffer --funcall org-export-as-latin1

file.org is an unix EOL file.

<= div style=3D"background-color: transparent; color: rgb(0, 0, 0); font-size:= 16px; font-family: 'times new roman', 'new york', times, serif; font-style= : normal;">report.el contains:

(require 'cl)
(require 'org)
(setq or= g-table-number-fraction 0.2)
(org-bab= el-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-ht= ml-postamble nil)

And it creates an ascii f= ile 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 s= ubstitute org-export-as-latin1 with org-ascii-export-to-ascii: I get the sa= me output content, but with unix EOL

I would a= ppreciate any hint to get the desired output, i.e., CRLF EOL. In my box, emacs.exe -Q saves new files with CRLF EOL.

Since= rely

Miguel Ruiz.
Sevilla (Spain)
<= div>
---2146765041-1583348380-1381748904=:34409--