emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Re: [PATCH] Problem with html export of description list items


From: Nicolas Goaziou
Subject: [O] Re: [PATCH] Problem with html export of description list items
Date: Fri, 08 Apr 2011 13:53:43 +0200

Hello,

Ethan Ligon <address@hidden> writes:

> Nicolas Goaziou <n.goaziou <at> gmail.com> writes:
>> > Ethan Ligon <ligon <at> are.berkeley.edu> writes:

>> 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.

I don't disagree: I was just pointing out the internals of the LaTeX
exporter in that case.

> 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.

Indeed. On the other hand, font-lock will still fontify is as
a description item, which is paradoxical.

> 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?

It is. Or something like the slightly different "::\\(:?[ \t]+\\|$\\)".
And if the same modification is made to docbook.el (code is very
similar), that will make a good patch for the problem at hand.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]