From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5EF3421438 for ; Mon, 21 Jan 2019 20:53:00 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 30/37] viewvcs: disable white-space prewrap in blob view Date: Mon, 21 Jan 2019 20:52:46 +0000 Message-Id: <20190121205253.10455-31-e@80x24.org> In-Reply-To: <20190121205253.10455-1-e@80x24.org> References: <20190121205253.10455-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We need to keep line-numbers from tags synced to the actual line numbers in the code when working in smaller viewports. Maybe I only work on reasonable projects, but excessively long lines seem to be less of a problem in code than they are in emails. --- lib/PublicInbox/ViewVCS.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm index 61f4deb..4a3896d 100644 --- a/lib/PublicInbox/ViewVCS.pm +++ b/lib/PublicInbox/ViewVCS.pm @@ -100,7 +100,8 @@ sub show ($$;$) { sprintf("% ${pad}u\n", $_) } (1..$nl)) . '' . '
 
'. # pad for non-CSS users - "
" .  ascii_html($$blob) .
+		"" .
+		ascii_html($$blob) .
 		'
' . $log; html_page($ctx, 200, \$log); -- EW