From 88faa5b020952aac35cba9c51873e7a694c2dd07 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Mon, 23 Dec 2019 11:28:14 +0100 Subject: scripts: html.py: Always generate a commit table If no bsp-commits are present, upstream commits are not listed. Signed-off-by: Geert Uytterhoeven Signed-off-by: Kuninori Morimoto --- scripts/myhtml.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/myhtml.py b/scripts/myhtml.py index f7d5349..1d5eed4 100755 --- a/scripts/myhtml.py +++ b/scripts/myhtml.py @@ -545,16 +545,15 @@ class periject_html(base.base): def task_commit(self, v): bsp = v.get_data("bsp-commits") - if (not bsp): - return - with html("table", {"border":"1"}): with html("tr"): - html("th").print("BSP") + if (bsp): + html("th").print("BSP") html("th").print("upstream") with html("tr"): - with html("td"): - self.task_commit_bsp(bsp) + if (bsp): + with html("td"): + self.task_commit_bsp(bsp) with html("td"): self.task_commit_upstream(v) -- cgit v1.2.3