liftoff / pyminifier

Pyminifier is a Python code minifier, obfuscator, and compressor.
GNU General Public License v3.0
1.45k stars 224 forks source link

Suggested feature: preserve line count #16

Open peterhinch opened 10 years ago

peterhinch commented 10 years ago

An option to minify while preserving the number of lines in the file. This would assist in debugging in that line numbers reported on the target system would match those in the commented original. In long well-commented files these can diverge to the point where debugging becomes hard.

Regards, Pete

jedie commented 9 years ago

:+1:

liftoff commented 9 years ago

This should be doable but I don't have much time to work on pyminifier right now. Anyone want to try their hand at adding this feature? I'll gladly accept the pull request (and I just noticed I have some PRs in the queue...).