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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: DOS (CRLF) EOL in org-ascii-export-to-ascii Date: Mon, 14 Oct 2013 16:24:40 +0200 Message-ID: <87eh7o6ic7.fsf@gmail.com> References: <1381748904.34409.YahooMailNeo@web172805.mail.ir2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVj4P-0000I1-13 for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 10:24:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVj4K-0000c4-Ao for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 10:24:28 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:57348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVj4K-0000by-2t for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 10:24:24 -0400 Received: by mail-wi0-f177.google.com with SMTP id ey11so1824625wid.4 for ; Mon, 14 Oct 2013 07:24:23 -0700 (PDT) In-Reply-To: <1381748904.34409.YahooMailNeo@web172805.mail.ir2.yahoo.com> (Miguel Ruiz's message of "Mon, 14 Oct 2013 12:08:24 +0100 (BST)") 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: Miguel Ruiz Cc: "emacs-orgmode@gnu.org" Hello, Miguel Ruiz writes: > I have the following working script in a windows box (emacs 24.3, org-ver= sion 7.9.3f-17) to produce an ascii file: > > emacs.exe -Q -batch --load=3Dreport.el --visit=3Dfile.org =C2=A0--funcall= org-babel-execute-buffer --funcall org-export-as-latin1 You don't need to call `org-babel-execute-buffer' since the export process already takes care of that. [...] > 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 w= ith 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. What happens if you set `org-export-coding-system' to `utf-8-dos'? Regards, --=20 Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ruiz Subject: Re: DOS (CRLF) EOL in org-ascii-export-to-ascii Date: Mon, 14 Oct 2013 17:44:21 +0100 (BST) Message-ID: <1381769061.7838.YahooMailNeo@web172804.mail.ir2.yahoo.com> References: <1381748904.34409.YahooMailNeo@web172805.mail.ir2.yahoo.com> <87eh7o6ic7.fsf@gmail.com> Reply-To: Miguel Ruiz Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-803835083-1043083700-1381769061=:7838" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlFu-0005G5-DJ for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 12:44:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVlFn-0007SG-8J for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 12:44:30 -0400 Received: from nm21-vm2.bullet.mail.ird.yahoo.com ([212.82.108.206]:41015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlFm-0007Rx-T9 for emacs-orgmode@gnu.org; Mon, 14 Oct 2013 12:44:23 -0400 In-Reply-To: <87eh7o6ic7.fsf@gmail.com> 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" ---803835083-1043083700-1381769061=:7838 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0A> What happens if you set `org-export-coding-system' to `utf-8-dos'?=0A= =0A=0AIt works like a charm.=0ASorry for the noise but there are too many n= ot-in-the-manual options for me.=0A=0ARegards,=0A=0AMiguel.=0A ---803835083-1043083700-1381769061=:7838 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

> What happens= if you set `org-export-coding-system' to `utf-8-dos'?

It works like a charm.
Sorry fo= r the noise but there are too many not-in-the-manual options for me.
Regards,

Miguel.
---803835083-1043083700-1381769061=:7838--