May 8, 2014 at 5:34 pm #18377
FuzzyBear
Participant
If your empty line contains just a newline try this:
document.selection.Replace(“^$\n”, “”, eeReplaceAll | eeFindReplaceRegExp)
If your empty line contains spaces and tabs try this:
document.selection.Replace(“^[[:blank:]]{1,}$\n”, “”, eeReplaceAll | eeFindReplaceRegExp)