From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ethan Ligon Subject: [Bug] Problem with html export of description list items Date: Wed, 6 Apr 2011 00:07:42 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=58835 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7GHw-0002K3-8l for emacs-orgmode@gnu.org; Tue, 05 Apr 2011 20:08:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7GHu-0007eI-Or for emacs-orgmode@gnu.org; Tue, 05 Apr 2011 20:08:00 -0400 Received: from lo.gmane.org ([80.91.229.12]:46562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7GHu-0007ds-Ch for emacs-orgmode@gnu.org; Tue, 05 Apr 2011 20:07:58 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q7GHr-0003RQ-KJ for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 02:07:56 +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 ; Wed, 06 Apr 2011 02:07:55 +0200 Received: from ligon by gia331.ARE.Berkeley.EDU with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2011 02:07:55 +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 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. Here's an example. #+begin_src org * Illustration of bug in html export - Has a space after the colons :: so will work in latex and html - No space after the colons ::so won't work in html - Has a terminating space :: - So it works in both html and latex export! - Even though it's difficult to distinguish from the next example. - Lacks a terminating space :: - *Doesn't* work in html export, does in latex. #+end_src The relevant bit of the html export #+begin_src html

Illustration of bug in html export

This has a space after the colons
so will work
???
This doesn't have a space after the colons ::so won't work
Has a terminating space
  • So it works in both html and latex export!
  • Even though it's difficult to distinguish from the next example.
???
Lacks a terminating space ::
  • Doesn't work in html export, does in latex.
#+end_src The relevant bit of the latex export looks like this: #+begin_src latex \vspace*{1cm} \section{Illustration of bug in html export} \label{sec-1} \begin{description} \item[This has a space after the colons] so will work \item[This doesn't have a space after the colons] so won't work \item[Has a terminating space] \begin{itemize} \item So it works in both html and latex export! \item Even though it's difficult to distinguish from the next example. \end{itemize} \item[Lacks a terminating space] \begin{itemize} \item \textbf{Doesn't} work in html export, does in latex. \end{itemize} \end{description} #+end_src Thanks for any help! -Ethan Ligon