Action

Strip single newline characters

Posted by @sylumer, Last update about 2 years ago - Unlisted

Steps

  • script

    draft.content = draft.content.replace(/([^\n])\n([^\n])/gm,"$1$2");
    draft.update();
    

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.