On 8/14/2010 12:55 AM, Jack Tanner wrote:
Hello all. Just getting started with LyX after putting it off for a long
time, and it looks really fantastic. Kudos.
I've been pasting source code (say, in R) into LyX notes (with
Ctrl+Shift+V), and then formatting the notes as LyX-code. This lets me
keep tabs on what code was used to produce what figure. But then when I
want to copy the R code out from the LyX note, it gains all these line
breaks that it didn't used to have. There's no "plain text copy" like
there is "plain text paste". How does one get the note contents without
line breaks? Using LyX 1.6.7.
Try creating the LyX-note, then inside the note do Insert > Program
Listing, and dump the source code into the listing inset. If I do that
(LyX 1.6.6, Win XP) and then copy the listing content and paste to an
outside document, I don't pick up any spurious line breaks.
/Paul