1
0
forked from ScoDoc/ScoDoc

Tables excel avec titres sur ligne: fix décalage ligne titre

This commit is contained in:
Emmanuel Viennet 2024-06-25 18:24:37 +02:00
parent ab65ae375f
commit c88191b0ca

View File

@ -313,11 +313,11 @@ class GenTable:
T.append(l + [self.bottom_titles.get(cid, "") for cid in self.columns_ids]) T.append(l + [self.bottom_titles.get(cid, "") for cid in self.columns_ids])
return T return T
def get_titles_list(self, with_lines_titles=True): def get_titles_list(self):
"list of titles" "list of titles"
titles = [self.titles.get(cid, "") for cid in self.columns_ids] titles = [self.titles.get(cid, "") for cid in self.columns_ids]
if with_lines_titles: if "row_title" in self.titles and "row_title" not in self.columns_ids:
titles.insert(0, "") titles.insert(0, self.titles["row_title"])
return titles return titles
def gen(self, fmt="html", columns_ids=None): def gen(self, fmt="html", columns_ids=None):