When I write a Markdown or LaTeX document, after I've created an blank line at the end in preparation for writing the next paragraph, I save the file. This blank line is then removed by this package.
I appreciate the utility of stripping whitespace, and I don't want to disable this function. But it is getting in the way in the situation outlined above. I propose to modify the behavior of the package such that if the cursor position would be changed by removing trailing blank lines, the blank lines are kept.
For illustration: Say I wrote the first paragraph of this comment and I'm about to write the second, my text looks like this:
When I write a Markdown or LaTeX document, after I've created an blank line at the end in
preparation for writing the next paragraph, I save the file. This blank line is then removed
by this package.
_
where the underline indicates the cursor position. I would now continue to type I appreciate. But after saving the file, the text is modified to
When I write a Markdown or LaTeX document, after I've created an blank line at the end in
preparation for writing the next paragraph, I save the file. This blank line is then removed
by this package.
_
so that I have to create the blank line before the next paragraph again.