From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] org-inlinetask produces invalid xhtml Date: Thu, 11 Aug 2011 12:23:06 +0200 Message-ID: <871uwsl01h.fsf@gmail.com> References: <81ipq7j1xp.fsf@gmail.com> <81aabjj17d.fsf@gmail.com> <87wrenn4ic.fsf@gmail.com> <81vcu7i1g6.fsf@gmail.com> <874o1qn756.fsf@gmail.com> <81y5z2p82h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrSQN-00070N-3C for emacs-orgmode@gnu.org; Thu, 11 Aug 2011 06:23:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrSQI-0000zY-Sh for emacs-orgmode@gnu.org; Thu, 11 Aug 2011 06:23:39 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:52388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrSQI-0000zU-M0 for emacs-orgmode@gnu.org; Thu, 11 Aug 2011 06:23:34 -0400 Received: by wyi11 with SMTP id 11so1554213wyi.0 for ; Thu, 11 Aug 2011 03:23:33 -0700 (PDT) In-Reply-To: <81y5z2p82h.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 10 Aug 2011 03:21:34 +0530") 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: Jambunathan K Cc: emacs-orgmode@gnu.org Hello, Jambunathan K writes: > 1. When org-inlinetask is NOT LOADED, inline tasks are treated as > regular headlines and are listified. (The "END" of inlinetask appears > as listified headline though) Loading org-inlinetask is the user's job. He has to assume weird things which will happen when the buffer holds inline tasks without them being loaded (but I give him an excuse as inline tasks are completely undocumented). > 2. If inlinetask is LOADED, the exporter could check the headline level > against org-inlinetask-min-level and take the following actions: > > - Continue to generate listified entries for inline tasks but > surround them with
...
entries. > > - Strip the "END" list item from being generated > > I think org-inlinetask-export-handler could be reduced to > 1. removing the inlinetask when org-inlinetask-export is nil > 2. stripping the inlinetask of drawers etc etc. > > (Queestions: Does the org-inlinetask-export-handler treat nested > inline tasks well? Btw, Is nesting of inline tasks "legitimate" to > begin with? ) As far as I can tell, inline tasks are not designed to be nested. > I am sure html and odt exporters can take care of inlinetask purely > during post-processing and do away with templates altogether. Templates are fine as long as inline tasks are not loaded by default. If this changes, I agree there are better ways to handle them (one being what you explain above). But, a few weeks ago, Bastien suggested to think again inline tasks. So, that might not happen soon. > I am not sure about LaTeX exporter though. > > What do you & others think? Let me work on a patch from odt/html side of > things. What I think is that, for now, we just should keep the existing facility and implement a working default template for HTML (and a new one for ODT). Regards, -- Nicolas Goaziou