dansanderson / picotool

Tools and Python libraries for manipulating Pico-8 game files. http://www.lexaloffle.com/pico-8.php
MIT License
367 stars 46 forks source link

luamin option to preserve newlines #66

Closed dansanderson closed 4 years ago

dansanderson commented 4 years ago

Luamin replaces all non-significant whitespace with single space characters. This causes minified programs to be on a single line according to Pico-8, such as in error messages. It would cost nothing and make error messages more useful if it used a newline instead of a space if a block of whitespace contains at least one newline.

It looks like it's supposed to be doing this but there's at least one report of minified code being on a single line.

dansanderson commented 4 years ago

Actually I think I misunderstood the report, and it may have been referring to a different luamin tool. Resolving for now.