Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lice/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,12 @@ def format_license(template, lang):
lang = 'txt'
out = StringIO()
template.seek(0) # from the start of the buffer
out.write(LANG_CMT[LANGS[lang]][0] + u'\n')
for line in template.readlines():
out.write(LANG_CMT[LANGS[lang]][1] + u' ')
if lang == 'txt':
out.write(LANG_CMT[LANGS[lang]][1])
else:
out.write(LANG_CMT[LANGS[lang]][1] + u' ')
out.write(line)
out.write(LANG_CMT[LANGS[lang]][2] + u'\n')
template.close() # force garbage collector
return out

Expand Down