From patchwork Fri Oct 18 18:21:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1179562 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46vvVr5Tlxz9sNw; Sat, 19 Oct 2019 05:21:22 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iLWsE-0004Sn-NY; Fri, 18 Oct 2019 18:21:14 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iLWsD-0004SR-5f for fwts-devel@lists.ubuntu.com; Fri, 18 Oct 2019 18:21:13 +0000 Received: from 1.general.alexhung.us.vpn ([10.172.65.254] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iLWsC-00034Y-KQ; Fri, 18 Oct 2019 18:21:13 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH] lib: fwts_log_html: set max-width for line wrap Date: Fri, 18 Oct 2019 12:21:10 -0600 Message-Id: <20191018182110.13513-1-alex.hung@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" This is to avoid horizontal scroll bar. This patch also fixes a typo from style_info to style_infos. Signed-off-by: Alex Hung Acked-by: Ivan Hu Acked-by: Colin Ian King --- 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, "\n");