Clean up text file encodings, and some formatting #3703
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This expands the set of definite text files, allows linux users to check out files with their native line endings without interfering with the ability of windows users to check out files with their native line endings, ensures files in the index are consistent in having LF (git can automatically convert them to CRLF on checkout for platforms that want this), ensures text files have a trailing newline at the end of file, encodes files as UTF-8 where possible, and strips trailing whitespace for lines that have other content.
sounds/music/license.txtappeared to have been misencoded at some point - I've replaced what appears from context to originally have been a hyphen with an ASCII hyphen.Not touched:
LuaUI/Fonts. These contain literal bytes between \x0 and \x255, so their "encoding" is left in binary.LuaUI/Widgets/cmd_area_attack_tweak.luaandlups/headers/tablebin.lua, detected as 'unknown-8bit'. The former file has binary bytes as part of the widget description; I suspect the correct solution is adjusting it to use escaped codes, similar to what eg. Global Build Command uses, but that is probably best discussed in a follow-up PR. The latter file ends with CHILLCODE\x99 in a comment; I have no idea what this is supposed to indicate or if there is an alternative we can use that leaves files friendlier to external tooling.Overall, this makes for a much cleaner working tree which plays nicely with external tools.