From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zachary Young Subject: Export HTML from command line Date: Tue, 16 Mar 2010 12:47:53 -0700 Message-ID: <91dc62521003161247u204eb069sd4be923c9c8d62c9@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1447423205==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nrcos-0001eZ-Bc for emacs-orgmode@gnu.org; Tue, 16 Mar 2010 15:52:50 -0400 Received: from [140.186.70.92] (port=44947 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nrcoq-0001bO-TQ for emacs-orgmode@gnu.org; Tue, 16 Mar 2010 15:52:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nrcoo-0006jp-Tc for emacs-orgmode@gnu.org; Tue, 16 Mar 2010 15:52:48 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:64447) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nrcoo-0006jN-Lz for emacs-orgmode@gnu.org; Tue, 16 Mar 2010 15:52:46 -0400 Received: by pwi4 with SMTP id 4so374518pwi.0 for ; Tue, 16 Mar 2010 12:52:44 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1447423205== Content-Type: multipart/alternative; boundary=00504502e88523975b0481f04684 --00504502e88523975b0481f04684 Content-Type: text/plain; charset=UTF-8 Hi all, When I run `org-export-as-html' in a buffer, it works as I expect, but when I try to run it from an emacs batch command: emacs --batch --execute='(setq vc-follow-symlinks nil)' --visit= current-day.org --execute='(org-export-as-html-and-open nil)' anything between #+BEGIN_HTML: and #+END_HTML: are exported like the following:

#+BEGIN_HTML: <pre>Revision: 934 Message:

  1. Revved 'release-name' variable to '1.10'.

---- Modified : /trunk/scripts/AutoDoc/AutoDoc.build</pre> #+END_HTML:

and I am expecting:
Revision: 934
Message:
1) Revved 'release-name' variable to '1.10'.
----
Modified : /trunk/scripts/AutoDoc/AutoDoc.build
This is my first try at running emacs as a batch command, so I might be doing something wrong there. If more information is required, please let me know. Thank you, Zach --00504502e88523975b0481f04684 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all,

When I run `org-export-as-html' in a buffer,= it works as I expect, but when I try to run it from an emacs batch command= :

emacs --batch --execute=3D'(setq vc-follow-symlinks nil)' --vi= sit=3Dcurrent-day.org --execute=3D&#= 39;(org-export-as-html-and-open nil)'

=
anything between #+BEGIN_HTML: and #+END_HTML: are exported like the follow= ing:

<p>#= +BEGIN_HTML:
&lt;pre&gt;Revision: 934
Messa= ge:
</p><ol>=C2=A0
&l= t;li>=C2=A0
Revved 'release-name' variable = to '1.10'.
</li>=C2=A0
</ol>=C2=A0
=C2=A0
<p>----
Modified : /trunk/scripts/AutoDoc/AutoDoc.build&lt;/pre&gt;<= /div>
#+END_HTML:
</p>

<= /div>
and I am expecting:

<pre>Revision: 934
Message:
1) Revved &= #39;release-name' variable to '1.10'.
----
= Modified : /trunk/scripts/AutoDoc/AutoDoc.build</pre>

This is my first try at running emacs as a batch c= ommand, so I might be doing something wrong there.

If mo= re information is required, please let me know.

Thank you,
Zach
--00504502e88523975b0481f04684-- --===============1447423205== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1447423205==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre de Buyl Subject: Re: Export HTML from command line Date: Wed, 17 Mar 2010 10:35:07 +0100 Message-ID: References: <91dc62521003161247u204eb069sd4be923c9c8d62c9@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nrpfk-0001DJ-VS for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 05:36:17 -0400 Received: from [140.186.70.92] (port=56585 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nrpfi-0001BC-Mo for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 05:36:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nrpfg-0001hE-Fs for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 05:36:14 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:56838) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nrpfg-0001bN-Bg for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 05:36:12 -0400 In-Reply-To: <91dc62521003161247u204eb069sd4be923c9c8d62c9@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Zachary Young Cc: emacs-orgmode@gnu.org =46rom the documentation http://orgmode.org/manual/Quoting-HTML-tags.html#Quoting-HTML-tags I would say that you need to remove the ":" in "#+BEGIN_HTML:" and =20 the closing line. However leaving them works also on my emacs (org =20 6.31trans). If it still does not work, can you send a minimal org file in which =20 the error is reproducible ? Pierre Le 16 mars 10 =E0 20:47, Zachary Young a =E9crit : > Hi all, > > When I run `org-export-as-html' in a buffer, it works as I expect, =20 > but when I try to run it from an emacs batch command: > > emacs --batch --execute=3D'(setq vc-follow-symlinks nil)' --=20 > visit=3Dcurrent-day.org --execute=3D'(org-export-as-html-and-open = nil)' > > anything between #+BEGIN_HTML: and #+END_HTML: are exported like =20 > the following: > >

#+BEGIN_HTML: > <pre>Revision: 934 > Message: >

    >
  1. > Revved 'release-name' variable to '1.10'. >
  2. >
> >

---- > Modified : /trunk/scripts/AutoDoc/AutoDoc.build</pre> > #+END_HTML: >

> > and I am expecting: > >
Revision: 934
> Message:
> 1) Revved 'release-name' variable to '1.10'.
> ----
> Modified : /trunk/scripts/AutoDoc/AutoDoc.build
> > This is my first try at running emacs as a batch command, so I =20 > might be doing something wrong there. > > If more information is required, please let me know. > > Thank you, > Zach > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode