logseq-tidy-blocks-plugin
logseq-tidy-blocks-plugin copied to clipboard
request a white space removal, plus at least one empty line
This is a great plugin. I wish I know about it much earlier. Would have save me a lot of time.
My understanding is: alt-t: remove whitespaces but not linebreaks. alt-r: remove whitespaces including line breaks.
However, I think there is a common use case where white spaces and line breaks are removed. But multiple consecutive line breaks are reduced down to two line breaks, i.e. keep one empty line. The effect is as follows:
BEFORE: line1
line 2
line 3 line 4
AFTER: line1
line2
line 3 line4
Many web articles including novels frequently use empty lines between two paragraphs. It will look very crowded and condensed if all empty lines are removed.
Thank you. This is a wonderful plugin.