Drafts Action Directory

NoXtraSpace

Posted by Courtney, Last update 5 months ago

Removes extra spaces, between words, while preserving line breaks.

Install

Steps

  • script

    var sel = editor.getText();
    var res = sel.replace(/ {2,}/gm,' ');
    editor.setText(res)

Options

  • After Success Default
    Notification Error
    Log Level Error

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.