From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: what happened to :wrap HTML ? Date: Wed, 24 Feb 2016 23:56:09 +0100 Message-ID: <87ziup67li.fsf@gmx.us> References: <87r3g17rpu.fsf@alphaville.usersys.redhat.com> <87mvqp4tdw.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYiM3-0007T0-AI for emacs-orgmode@gnu.org; Wed, 24 Feb 2016 17:56:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYiLy-0006Ef-91 for emacs-orgmode@gnu.org; Wed, 24 Feb 2016 17:56:23 -0500 Received: from plane.gmane.org ([80.91.229.3]:34270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYiLy-0006EU-2H for emacs-orgmode@gnu.org; Wed, 24 Feb 2016 17:56:18 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aYiLw-00019c-KW for emacs-orgmode@gnu.org; Wed, 24 Feb 2016 23:56:16 +0100 Received: from 46.166.186.219 ([46.166.186.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Feb 2016 23:56:16 +0100 Received: from rasmus by 46.166.186.219 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Feb 2016 23:56:16 +0100 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 Nicolas Goaziou writes: > Hello, > > Nick Dokos writes: > >> Giuseppe Lipari writes: >> >>> Hello, >>> >>> I used to generate html code with a python script using org-babel, like this: >>> >>> %------- example.org ---------% >>> * This is an example of export in HTML >>> #+BEGIN_SRC python :exports results :results output :wrap HTML >>> print "
  • first item
  • " >>> print "
  • second item
  • " >>> print "
" >>> #+END_SRC >>> %------- example.org ---------% >>> >>> This used to work just fine and produce a nice unordered list in >>> html. Until the moment I updated to the >>> current development version: >>> >>> Org-mode version 8.3.4 (release_8.3.4-588-g924431 @ /home/lipari/elisp/org-mode/lisp/) >>> >>> Now, it produces the attached screenshot: >>> >>> snapshot >>> >>> Hence my question: what happened to ":wrap HTML" ?? Is there an equivalent way to express the same >>> behaviour as before? >>> >> >> I bet :wrap HTMP produces >> >> #+BEGIN_HTML >> ... >> #+END_HTML >> >> instead of >> >> #+BEGIN_EXPORT HTML >> #+END_EXPORT > > So I guess the OP should write :wrap export HTML. > > We could also add the export part automatically, but that would limit > the value of the parameter (e.g., impossible to do anything else than > export blocks) We need to allow special blocks. But the question is whether we can "guess" when something is a backend and do the right thing. It’s probably a "can of worms" to try to guess. Rasmus -- Nothing's wrong with an email that ends in a minor key