Daniel said on Thu, 18 Nov 2021 08:48:07 +0100 >On 2021-11-17 23:28, Steve Litt wrote: >> Daniel said on Wed, 17 Nov 2021 10:44:23 +0100 >> >>> On 17/11/2021 10:01, Steve Litt wrote: >>>> Hi all, >>>> >>>> I have a C program I want to show in a book. So I use the LyX-Code >>>> environment, but when I copy the C file to the clipboard and paste >>>> it into the LyX-Code environment, all the newlines are removed. >>>> What's the right way to show a C program file within LyX? >>>> >>>> Thanks, >>>> >>>> SteveT >>>> >>>> Steve Litt >>>> Spring 2021 featured book: Troubleshooting Techniques of the >>>> Successful Technologist http://www.troubleshooters.com/techniques >>>> >>> >>> You could try >>> >>> "Edit" > "Paste Special" > "Plain Text" or Ctrl+Shift+V. >> >> The preceding worked. Thank you! >>> >>> I never understood what "Plain Text" does not among other things it >>> should keep the line breaks. I guess keeping line-breaks should be >>> the default... >> >> It's ridiculous that it's not the default, you're right. >> >> Thanks also to Norman Dunbar who suggested the same things. >> >> Thanks also to Hartmut Hasse and Stephan Witt for their suggestions, >> which I didn't try for lack of time once the Shift+Ctrl+v worked. >> >> I spent 2 hours trying to find a method last night, before figuring >> I'd be better off asking the list. Thanks for your suggestions! >> >> SteveT > >Sorry to hear that you wasted so much time.
Thanks Daniel. I'm not sorry: It's adventures like this that keep me on my toes. Also, I don't ask on the list until I've done significant research. > Others seem to have been >there before as well: > >https://www.lyx.org/trac/ticket/8026 Until somebody gets around to "fixing" it, which at this point would mess up those used to the current behavior, it could be treated as a documentation problem. It would be interesting to put it on a page titled "The Top 20 Unexpected Behaviors in LyX". That page could be prominently linked to by many other pages. I'm so used to LyX that I long ago forgot the other 19 :-). SteveT Steve Litt Spring 2021 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques -- lyx-users mailing list [email protected] http://lists.lyx.org/mailman/listinfo/lyx-users
