From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ethan Ligon Subject: [PATCH] Problem with html export of description list items Date: Wed, 6 Apr 2011 00:38:36 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=53715 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7Gls-00072x-BI for emacs-orgmode@gnu.org; Tue, 05 Apr 2011 20:38:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7Glq-0006Bl-8B for emacs-orgmode@gnu.org; Tue, 05 Apr 2011 20:38:56 -0400 Received: from lo.gmane.org ([80.91.229.12]:48427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7Glq-0006BK-0U for emacs-orgmode@gnu.org; Tue, 05 Apr 2011 20:38:54 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q7Glo-0001O7-AO for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 02:38:52 +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:38:52 +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:38:52 +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 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. > Having done the work to describe the problem, it wasn't hard to find a solution. In this case that's a one character change to a regexp in org-html.el. Here's the patch: diff --git a/lisp/org-html.el b/lisp/org-html.el index d19d88b..005a0f7 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -2501,7 +2501,7 @@ the alist of previous items." (concat "[ \t]*\\(\\S-+[ \t]*\\)" "\\(?:\\[@\\(?:start:\\)?\\([0-9]+\\|[A-Za-z]\\)\\]\\)?" "\\(?:\\(\\[[ X-]\\]\\)[ \t]+\\)?" - "\\(?:\\(.*\\)[ \t]+::[ \t]+\\)?" + "\\(?:\\(.*\\)[ \t]+::[ \t]*\\)?" "\\(.*\\)") line) (let* ((checkbox (match-string 3 line)) (desc-tag (or (match-string 4 line) "???"))