From 96b22ac5ca8b8fa47752c7d08f2beb9766b713cc Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 16 Feb 2021 19:46:34 +0100 Subject: [PATCH] =?UTF-8?q?Bul.=20PDF:=20meilleure=20affichage=20ligne=20m?= =?UTF-8?q?oyenne=20g=C3=A9n=C3=A9rale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sco_bulletins_standard.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sco_bulletins_standard.py b/sco_bulletins_standard.py index eb937a2..d0ac448 100644 --- a/sco_bulletins_standard.py +++ b/sco_bulletins_standard.py @@ -378,7 +378,8 @@ class BulletinGeneratorStandard(sco_bulletins_generator.BulletinGenerator): P[-1]["_pdf_style"].append( ("LINEBELOW", (0, 0), (-1, 0), self.PDF_LINEWIDTH, self.PDF_LINECOLOR) ) - + # Espacement sous la ligne moyenne générale: + P[-1]["_pdf_style"].append(("BOTTOMPADDING", (0, 1), (-1, 1), 8)) # Moyenne générale: nbabs = I["nbabs"] nbabsjust = I["nbabsjust"] @@ -392,8 +393,10 @@ class BulletinGeneratorStandard(sco_bulletins_generator.BulletinGenerator): "abs": "%s / %s" % (nbabs, nbabsjust), "_css_row_class": "notes_bulletin_row_gen", "_titre_colspan": 2, - "_pdf_row_markup": ['font size="12"', "b"], # bold, size 12 - "_pdf_style": [("LINEABOVE", (0, 1), (-1, 1), 1, self.PDF_LINECOLOR)], + "_pdf_row_markup": ["b"], # bold. On peut ajouter 'font size="12"' + "_pdf_style": [ + ("LINEABOVE", (0, 1), (-1, 1), 1, self.PDF_LINECOLOR), + ], } P.append(t)