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.


  • script

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


  • 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.