This repository has no description

font: handle CRLF line endings in octants.txt parsing master

Trim trailing \r when splitting octants.txt by \n at comptime. On Windows, git may convert LF to CRLF on checkout, leaving \r at the end of each line. Without trimming, the parser tries to use \r as a struct field name in @field(), causing a compile error. Follows the same pattern used in x11_color.zig for rgb.txt parsing.


Author Alessandro De Blasis Committer Mitchell Hashimoto Date Commit 650b9d47 Parent fead488d Change ID vnyzlozl
+8 -1
1 changed file