On Wed, Nov 28, 2012 at 7:04 PM, Jürgen Spitzmüller <sp...@lyx.org> wrote:
>> Liviu Andronic wrote:
>>> - I may have found a small bug: Insert the Sweave Chunk inset, then
>>> the 'Chunk options', then type 'a'. In the LyX source you would notice
>>> the following:
>>> <<a\selectlanguage{english}%
>>>
>>> >>=@
>
> This one should be fixed now, too.
>
I think I found a different iteration of this issue.

- Insert an Sweave Chunk with contents:
pi
2+2
nnorm(3)

- Insert a Chunk Option:
echo=T

- In the source you should see:
<<echo=T>>=
2+2
pi
nnorm(3)
@


- Save the document, close it and re-open.

- Now typing 'asdf' at the beginning of the Chunk Option will result in:
<<asdf\foreignlanguage{english}{echo=T}>>=
2+2
pi
nnorm(3)
@

- While typing 'asdf' at the end of the Chunk Option will result in:
<<echo=T{asdf}>>=
2+2
pi
nnorm(3)
@


In the first case we get an unnecessary \foreignlanguage declaration,
while in the 2nd the input text is being enclosed in brackets. I'm
able to reproduce this only after re-opening a saved LyX Sweave file
containing an argument inset.

Regards
Liviu

Reply via email to