[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] Problem with html export of description list items
From: |
Ethan Ligon |
Subject: |
[O] [PATCH] Problem with html export of description list items |
Date: |
Wed, 6 Apr 2011 00:38:36 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Ethan Ligon <ligon <at> 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]*\\)"
"\\(?:address@hidden(?: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) "???"))