From eab09837311e848650dcb5d0c6e1cbb07216fd83 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 29 Jul 2023 15:58:25 +0200 Subject: [PATCH] signature --- cnam/thesis/build.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cnam/thesis/build.py b/cnam/thesis/build.py index 667bbc6..5a58a27 100755 --- a/cnam/thesis/build.py +++ b/cnam/thesis/build.py @@ -120,12 +120,11 @@ def build(directory, sign): ]).decode('u8').splitlines() id = lines[2].index('"') lines = [ - lines[0], - lines[1], - lines[2][:id] + lines[4][id:] - .replace('@', ' @ ') - .replace('.', ' ⋅ ') - ] + lines[5:] + *lines[:2], + *[line.replace('@', ' @ ').replace('.', ' ⋅ ') + for line in lines[2:4]], + *lines[-2:] + ] # write verification file buffer = os.linesep.join(lines).encode('u8') with open(os.path.join(directory, f'{pdf}.vrf'), 'bw') as f: