From 1542eae5e0324509b84cb8eb2e312959e25e613d Mon Sep 17 00:00:00 2001 From: friend Date: Wed, 14 Dec 2022 01:33:16 +0100 Subject: [PATCH] pages!! --- pdf-compile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdf-compile.py b/pdf-compile.py index a54f371..baa3bff 100755 --- a/pdf-compile.py +++ b/pdf-compile.py @@ -29,7 +29,7 @@ e2hprocessor='http://totalism.org:7777/glia2?sourceMethod=post&sinkFormat=text/g chapters=[] outputs=[] counter=0 -page=0 +page=1 ooooo_graphs="https://pad.constantvzw.org/p/atnofs-insert" indexmd = requests.get('https://pad.vvvvvvaria.org/atnofs-index.md/export/txt').text @@ -98,13 +98,13 @@ for chapter in chapters: else: preview = requests.get(chapter.replace('pad/','preview.html')) style = requests.get(chapter.replace('pad/','stylesheet.css')) - + style=style.text if page > 0: - style+='@page:first { counter-increment: page '+str(page)+'; }' + style=style+'@page:first { counter-increment: page '+str(page)+'; }' stylefile=localhost+'.'+name+'/stylesheet.css' with open(stylefile, 'w') as file: - file.write(style.text) + file.write(style) previewfile=localhost+'.'+name+'/preview.html' localpreview=localurl+'.'+name+'/preview.html'