To delete all empty lines, regardless of the number of empty lines between non-empty lines, regardless of how much was regular or not.
You must act as follows:
1 you delete all empty lines with
Β« Text Menu / Process Lines Containing... Β» > Regex : ^$ > Use grep enabled > Delete matched line enabled
2d, if you want to restore readability, add an empty line after your blocks, for example
Β« Search Menu / Find... Β» > Grep enabled > Find: ^}$ <<<< because the final curly is usually the 1st and the last char > Replace: }\n <<<< or \r or \r\c according to the Platform choice
source share