Uwe Stöhr wrote: > While doing this I stumbled of a tex2lyx bug with listings: > http://www.lyx.org/trac/ticket/8065 > > The solution would be the same as I now did for verbatim. > What do you think?
I agree (once the verbatim support is improved). > I also found out that listings are currently not parsed if they have some > settings: http://www.lyx.org/trac/ticket/8066 The special language option handling looks fragile. I believe it will work without the special code if you use p.verbatimOption() instead of p.getArg(). That would also take care if other options than language use brackets. Georg