You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Personally I feel this would be a better criteria than just allowing multiple new lines at the end of file. Seems not many people is maintaining this repo though. Guess we will have to look into it ourselves.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
where the underline indicates the cursor position. I would now continue to type
I appreciate
. But after saving the file, the text is modified toso that I have to create the blank line before the next paragraph again.
The text was updated successfully, but these errors were encountered: