From c88191b0ca2a1469bdfeb87821c09f225ea64923 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 25 Jun 2024 18:24:37 +0200 Subject: [PATCH] =?UTF-8?q?Tables=20excel=20avec=20titres=20sur=20ligne:?= =?UTF-8?q?=20fix=20d=C3=A9calage=20ligne=20titre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/gen_tables.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scodoc/gen_tables.py b/app/scodoc/gen_tables.py index 83752b5e..2f13fdd8 100644 --- a/app/scodoc/gen_tables.py +++ b/app/scodoc/gen_tables.py @@ -313,11 +313,11 @@ class GenTable: T.append(l + [self.bottom_titles.get(cid, "") for cid in self.columns_ids]) return T - def get_titles_list(self, with_lines_titles=True): + def get_titles_list(self): "list of titles" titles = [self.titles.get(cid, "") for cid in self.columns_ids] - if with_lines_titles: - titles.insert(0, "") + if "row_title" in self.titles and "row_title" not in self.columns_ids: + titles.insert(0, self.titles["row_title"]) return titles def gen(self, fmt="html", columns_ids=None):