Uwe Stöhr wrote:
> I guess the fix is simple:
> 
> - When the LaTeX code of an item label contains the character "[" but not
>  "\[", embrace the whole  item label.
> 
> I can have a look to provide a patch soon, but cannot promise it due to
>  lack of spare time.

I think we should do nothing in case of ERT, that's why I asked. ERT users 
should embrace the construct by themselves (I might as well intentionally 
insert a "]" to do something weird. In any case, LyX should not try to be 
clever if ERT is involved.

In the other cases, I think the respective inset should handle the embracing. 
There's a (currently private) method Text::inDescriptionItem that can be used 
to detect whether we are in an item.

Jürgen

Reply via email to