diff --git a/pdf-compile.py b/pdf-compile.py index 63c8b0a..a54f371 100755 --- a/pdf-compile.py +++ b/pdf-compile.py @@ -100,7 +100,7 @@ for chapter in chapters: style = requests.get(chapter.replace('pad/','stylesheet.css')) if page > 0: - style+='@page:first { counter-increment: page '+page+'; }' + style+='@page:first { counter-increment: page '+str(page)+'; }' stylefile=localhost+'.'+name+'/stylesheet.css' with open(stylefile, 'w') as file: