šŸš«Blanks

Script key

Posted by bobmurdock

Install

Details

Label šŸš«Blanks
Voice Over
Script
// Script to strip out blank lines

var s = getText();
var lines = s.split('\n');

var currentline ='';
for(var ix in lines) {
testline = new String(lines[ix]);
if (testline.trim() != '') {
 currentline+= testline + ' \n'
 }
}
 
setText(currentline);

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus