Action

Reduce blank lines

Posted by drdrang, Last update over 5 years ago - Unlisted

Reduce consecutive blank lines into single blank lines.

Steps

  • script

    // Turn two or more consecutive blank lines into a single bkank line.
    r = editor.getText().replace(/\n\n\n+/g, '\n\n');
    editor.setText(r);
    

Options

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