X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08 Nov 2021 09:37 AM by  Ben Castellani
copy paste in editor ignores new lines
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Michael Lawler



New Member


Posts:1
New Member


--
21 Jul 2021 10:27 AM
    I've been running some IDL code on Windows (IDL vers 8.7.2) and have recently been migrating to a Mac system (OS 10.15.3, IDL 8.8.0). In the IDL text editor on the Mac, on existing .pro files I used on Windows, I find that when I copy and paste multiple lines, the lines appear as one line. This makes editing programs extremely tedious. If I generate new files, there is no such issue- copy and paste of multiple lines works normally. This appears to be a "new line" character issue. In the existing files, IDL identifies the end-of-line character as a "carriage return"- looks like a little box when I turn on invisibles display. I think this implies that they are "legacy" Mac-generated files. For new files, I am able to set either Unix or Windows endings, which each include a P-looking "line feed" character, and I can copy and paste multiple lines normally. This doesn't appear to be an issue with the OS- when I open the text files in a text editor (BBEdit), I can copy and paste multiple lines normally. In fact, I can even copy and paste multiple lines from the IDL editor into the IDL command line and it treats them as multiple lines! But when copying and pasting from and to the editor, for these "legacy Mac" files, the carriage return character vanishes and all the text appears on a single line. It seems strange that this format appears to work fine on Windows but not on the Mac version of IDL. Any suggestions would be greatly appreciated!

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    01 Oct 2021 01:43 PM
    This Mac OS specific text/console/editor issue in the IDL Workbench should have been resolved in IDL 8.8.1

    Please try that version which includes the patch.

    Michael Lawler



    New Member


    Posts:1
    New Member


    --
    02 Nov 2021 11:36 AM
    Hi, I just installed the 8.8.1 update and the issue is still unresolved. I still have to convert the Mac-encoded files to something else in order to copy-paste in the IDL editor.

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    08 Nov 2021 09:37 AM
    Actually I believe I understood your original concern incorrectly. There was a separate copy/paste issue on Mac OS that was fixed in IDL 8.8.1.

    I have not heard about this legacy PRO code issue with carriage returns. I will test and look into resolving this issue for future IDL releases.
    You are not authorized to post a reply.