Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: CRLF -> LF #27

Open
willie68 opened this issue Apr 29, 2021 · 2 comments
Open

Suggestion: CRLF -> LF #27

willie68 opened this issue Apr 29, 2021 · 2 comments
Labels
enhancement New feature or request web Applies to python-minifier.com

Comments

@willie68
Copy link

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
Copy link
Owner

dflook commented Apr 29, 2021

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

A download button on the website is a good idea

@dflook dflook added enhancement New feature or request web Applies to python-minifier.com labels Apr 29, 2021
@willie68
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request web Applies to python-minifier.com
Projects
None yet
Development

No branches or pull requests

2 participants