do not shorten if the file is too long
Merge pull request #42 from weihang7/master

Do not attempt to shorten if the file is too long.