Remove Multi-Space
Remove Multi-Space

Script key: Remove Multi-Space

Posted by @cavechilde

Install

Details

Label Remove Multi-Space
Voice Over Remove Multi-Space
Script
// Replaces any instance of more than one contiguous space with a single space. 

var txt = getText();
var newTxt = txt.replace(/\s{2,}/g, ' ');
setText(newTxt);

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus