From 2f152cf2114006be717dc25d400982706657f678 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Fri, 14 Feb 2020 09:00:29 +0100 Subject: Report: Detailed test results table 2 Change-Id: Ica89d51b5590ba6ceaedb7a4d244abee78f30755 Signed-off-by: Tibor Frank (cherry picked from commit ebe8b93eff2b7860ee2a506b18661aa2c1930390) --- resources/tools/presentation/generator_tables.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 0ae73b17ff..5fa8219a51 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -321,7 +321,8 @@ def table_details(table, input_data): if len(col_data) > 30: col_data_lst = col_data.split(u"-") half = int(len(col_data_lst) / 2) - col_data = f"{u'-'.join(col_data_lst[:half])}\n" \ + col_data = f"{u'-'.join(col_data_lst[:half])}" \ + f"- |br| " \ f"{u'-'.join(col_data_lst[half:])}" col_data = f" |prein| {col_data} |preout| " elif column[u"data"].split(u" ")[1] in (u"msg", ): @@ -400,9 +401,17 @@ def table_merged_details(table, input_data): col_data = col_data.replace( u"No Data", u"Not Captured " ) - if column[u"data"].split(u" ")[1] in (u"name", u"msg"): + if column[u"data"].split(u" ")[1] in (u"name", ): + if len(col_data) > 30: + col_data_lst = col_data.split(u"-") + half = int(len(col_data_lst) / 2) + col_data = f"{u'-'.join(col_data_lst[:half])}" \ + f"- |br| " \ + f"{u'-'.join(col_data_lst[half:])}" + col_data = f" |prein| {col_data} |preout| " + elif column[u"data"].split(u" ")[1] in (u"msg", ): col_data = f" |prein| {col_data} |preout| " - if column[u"data"].split(u" ")[1] in \ + elif column[u"data"].split(u" ")[1] in \ (u"conf-history", u"show-run"): col_data = col_data.replace(u" |br| ", u"", 1) col_data = f" |prein| {col_data[:-5]} |preout| " -- cgit 1.2.3-korg