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
When a custom new fragment template is used, scriv strips the final newline from it when it creates the fragment. For example, create the following scriv.ini:
The following is not a solution, but a general tip to enforce styles and preferences on projects.
To enforce this across all files -- regardless of what tool or generates the file -- you can use the "end-of-file-fixer" pre-commit hook to ensure that all text files end with a newline, a la:
When a custom new fragment template is used, scriv strips the final newline from it when it creates the fragment. For example, create the following
scriv.ini
:Then create
fragment.j2
as follows:Now create a fragment and examine it:
This is mildly annoying, as I'd like all my text files to end with a newline.
The text was updated successfully, but these errors were encountered: