Skip to content

Conversation

@apocelipes
Copy link
Contributor

It is better to end the text file with a newline character, otherwise some command line tools cannot correctly process the contents of the file. Here's a more detailed explanation: https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline

Also add some TODOs to remind me to replace these ugly putc with YYJSON_WRITE_NEWLINE_AT_END after a new version of yyjson is released.

@CarterLi CarterLi merged commit 4430b71 into fastfetch-cli:dev Apr 3, 2024
@apocelipes apocelipes deleted the feat-add-new-line-at-the-eof-of-configfile branch April 3, 2024 12:08
CarterLi added a commit that referenced this pull request Apr 7, 2024
@ceamac ceamac mentioned this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants