Condense Multiple Line Feeds

Posted by agiletortoise, Last update 8 days ago

Replace any occurences of multiple line feeds (\n) in the editor with a single line feed.

Steps

  • script

    let text = editor.getText();
    text = text.replace(/\n+/g, "\n");
    editor.setText(text);

Options

  • After Success Default
    Notification Info
    Log Level Info
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.