dflook / python-minifier

Transform Python source code into its most compact representation
MIT License
583 stars 43 forks source link

Suggestion: CRLF -> LF #27

Open willie68 opened 3 years ago

willie68 commented 3 years ago

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?)

dflook commented 3 years ago

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

A download button on the website is a good idea

willie68 commented 3 years ago

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.