Mod dependency list has bad line breaks if file has Windows line-breaks on unixoid system #4720
Minetest may screw up the list of mod dependencies in the main menu if the line endings of
The text seems to be a “half line” too high. The file was stored with “Windows” line endings. If I convert
(No line-break at the final line, but it makes no difference.)
Tested in 70e2df4.
The text was updated successfully, but these errors were encountered:
This fixes a bug existing in modmgr.lua as reported by @Wuzzy2 which caused the mod dependency list to glitch if input was using a line terminator different than the OS default. The C++ code does not need any changes as it already trims CR occurrences on platforms on which the line termination sequence is LF. Taken into account the size of the depends.txt files used, this should not introduce a noticeable performance regression. Fixes minetest#4720