jimporter / mike

Manage multiple versions of your MkDocs-powered documentation via Git
BSD 3-Clause "New" or "Revised" License
534 stars 47 forks source link

Fix generated text-files #101

Closed ktomk closed 2 years ago

ktomk commented 2 years ago

Text files generated (from redirect templates and versions.json) are missing trailing newlines ("No newline at end of file").

Missing in the sense that git diff and similar operations are emitting such diagnostic messages.

The issue is with these kinds of files:

Fix is to add a newline (U000A LINE FEED (LF) \n) at the end of file. It is verbatim as git stores text-files with the \n line separator internally and these buffers are used as file-data in git-fast-import.

ktomk commented 2 years ago

Thanks for the comments, very helpful. Updated.

jimporter commented 2 years ago

Thanks! Merged.