#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)