badges / pypipins

Badges for your site to display download totals, latest version using PyPI
http://pypip.in
MIT License
78 stars 45 forks source link

Remove dashes from license field #33

Closed coldfix closed 9 years ago

coldfix commented 9 years ago

Hey, this contains a fix for a very small issue encountered when a license text contains a dash. E.g. if the license is "non-free". At the moment, this will generate the following shield:

shield

After the patch:

shield

The same issue probably exists for other fields as well.

coldfix commented 9 years ago

Sorry, probably its better to fix the issue inside shields, I'll look into it.

coldfix commented 9 years ago

Please forgive my ignorance: I just realized, the shields API already supports dashes via --. I amended the commit.

Also escaping other special characters (/$?= etc) now.

If you want, I can squash-rebase the commits.