dflook/python-minifier

Suggestion: CRLF -> LF

willie68 opened this issue · 2 comments

First of all, i love this project. As i'm working on a micropython port (microbit) there always not enghoug space for the source in the mb. Reduces my actual project from 18567 to 10833 bytes. wow.
So i dig into the generate code and finally i found 1 suggestion for the minifier and one for your website.
It would be nice, if you can reduce all lineendings in the code from CRLF to LF only.
Second. Can you add a download button to your website, for direct downloading the minified code. Because sometimes the editfield (which you copy) automatically add on windows system CRLF instead of LF. (Maybe that's the problem for the first issue?)

Hi @willie68, python-minifier output uses a line feed only.

A download button on the website is a good idea

That 's great, so i think it's the text component of the browser, which is generating the CRLF at the line endings. BEcause if i copy/pst it from the text box (or i press the copy button) all endings are CRLF.