From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ethan Ligon Subject: Re: [PATCH] Problem with html export of description list items Date: Thu, 7 Apr 2011 21:52:51 +0000 (UTC) Message-ID: References: <87bp0i5io5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=46438 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7x8T-0002nv-4k for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 17:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7x8S-0002OL-15 for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 17:53:04 -0400 Received: from lo.gmane.org ([80.91.229.12]:57718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7x8R-0002Nx-LT for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 17:53:03 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q7x8Q-0004cb-JJ for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 23:53:02 +0200 Received: from gia331.ARE.Berkeley.EDU ([128.32.251.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Apr 2011 23:53:02 +0200 Received: from ligon by gia331.ARE.Berkeley.EDU with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Apr 2011 23:53:02 +0200 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 Nic- Nicolas Goaziou gmail.com> writes: > > Ethan Ligon are.berkeley.edu> writes: > >> > >> I've just stumbled across what I regard as a bug in the html export of > >> description list items. > >> > >> The problem has to do with whether the specification of a description > >> list includes a trailing space or not; i.e., whether "- Item ::" is > >> treated the same way as "- Item :: ". LaTeX export treats these as > >> identical. Html export gets confused about what the description list > >> item is, and winds up generating a "???" for the description. > > LaTeX exporter doesn't treats these as identical. What happens is that > in your example, the first item is correct and the list is thus set as > a description list. As such, LaTeX exporter tries hard to fill > description terms for every item in the list. If you exchange the first > and second items in your example, the list will be exported as > a standard itemize list in LaTeX. > Your patch allows items like: > > - term ::description > > which are not valid for a description list. Thanks for correcting my misunderstanding of the latex-export behavior. But I still think this behavior is undesirable. The org manual says that a description item takes the form '- term :: ', and thus seems to require a space after the double colon. I suppose it's this that you're relying on in claiming that "- term ::description" is invalid. I agree that "- term ::description" is ugly, but the use-case that is giving me problems is something like - term :: 1. A list 2. Providing 3. The description The html export code currently allows "- term ::[ \t]+", so the above breaks unless there's a space or a tab following the "::". My issue would be addressed if we could just slightly expand the set of allowable white space following, so that we'd have "::[ \t\n]+". Does that seem reasonable? Thanks, -Ethan