Skip to content

Commit

Permalink
Fix license generation \r\n: replaces in input files too
Browse files Browse the repository at this point in the history
  • Loading branch information
koczkatamas committed Jul 2, 2017
1 parent 627b031 commit 0163d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
wikiResult += 'License: %s (%s)\n\n' % (lib['licenseName'], lib['licenseUrl'])

licResult += '='*80 + '\n'
with open(licFns[0],'rt') as f: licResult += f.read().strip() + '\n'
with open(licFns[0],'rb') as f: licResult += f.read().strip().replace('\r\n', '\n') + '\n'
licResult += '='*80 + '\n\n'

open('LICENSE-3RD-PARTY.txt', 'wb').write(licResult.strip())
Expand Down

0 comments on commit 0163d5d

Please sign in to comment.