[PATCH] lib: fwts_log_html: set max-width for line wrap

Alex Hung alex.hung at canonical.com
Fri Oct 18 18:21:10 UTC 2019


This is to avoid horizontal scroll bar.

This patch also fixes a typo from style_info to style_infos.

Signed-off-by: Alex Hung <alex.hung at canonical.com>
---
 src/lib/src/fwts_log_html.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/src/fwts_log_html.c b/src/lib/src/fwts_log_html.c
index 20c08471..342f0e6c 100644
--- a/src/lib/src/fwts_log_html.c
+++ b/src/lib/src/fwts_log_html.c
@@ -439,7 +439,7 @@ static void fwts_log_open_html(fwts_log_file *log_file)
 		".style_error { background-color: orange; font-weight: bold; "
 		"text-align: center; vertical-align: center }\n"
 		".style_subtest { background-color: lightgray; }\n"
-		".style_info { }\n"
+		".style_infos { max-width:90em }\n"
 		".style_code { font-family: \"courier\",\"mono\"; font-size:0.75em; overflow:auto; "
 		"width:90%; line-height:1.08em; font-stretch:extra-condensed; word-wrap:normal }\n");
 	fwts_log_html(log_file, "</STYLE>\n");
-- 
2.17.1




More information about the fwts-devel mailing list