diff --git a/songbook.py b/songbook.py index 3f1f7a2e..4a394c2f 100755 --- a/songbook.py +++ b/songbook.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # import getopt, sys @@ -52,7 +53,7 @@ def makeTexFile(songbook, output): for song in songs: out.write(' \\input{{songs/{songfile}}}\n'.format(songfile=song.strip())) out.write('}\n') - tmpl = open("templates/"+template, 'r') + tmpl = open("templates/"+template) out.write(tmpl.read().replace("SONGBOOKNAME", name+"_index")) tmpl.close() out.close()