From 9970f3f9d81e544b2f33cc06772b8daa2b8a1aaf Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 14 Jul 2020 14:57:13 +0900 Subject: scripts: myhtml.py: don't indicate "upstream" if not exist commit 88faa5b020952 ("scripts: html.py: Always generate a commit table") fixup:ed to always indicate a "upstream" table. But it indicates empty table even though there is no "upstream" tag. This patch fixup it to indicate "upstream" table only if exist. Fixes: commit 88faa5b020952 ("scripts: html.py: Always generate a commit table") Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven --- scripts/myhtml.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/myhtml.py b/scripts/myhtml.py index e633f65..e46b65e 100755 --- a/scripts/myhtml.py +++ b/scripts/myhtml.py @@ -569,17 +569,21 @@ class periject_html(base.base): def task_commit(self, v): bsp = v.get_data("bsp-commits") + upstream = v.get_data("upstream") + with html("table", {"border":"1"}): with html("tr"): if (bsp): html("th").print("BSP") - html("th").print("upstream") + if (upstream): + html("th").print("upstream") with html("tr"): if (bsp): with html("td"): self.task_commit_bsp(bsp) - with html("td"): - self.task_commit_upstream(v) + if (upstream): + with html("td"): + self.task_commit_upstream(v) #-------------------- # task_comment -- cgit v1.2.3