Action
Compress spaces and blank/empty lines
Steps
-
script
draft.content = draft.content.replace(/ +/g, ' '); draft.content = draft.content.replace(/^\s*\n/gm, ''); draft.content = draft.content.replace(/^\n|\n$/g, ''); 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.