From: Eric Wong Date: Sun, 20 Jan 2019 12:18:35 +0000 (+0000) Subject: viewvcs: disable white-space prewrap in blob view X-Git-Tag: v1.2.0~397^2~36 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=1f1dd03147b2537bb641fed3ac31986f65defefd;p=public-inbox.git viewvcs: disable white-space prewrap in blob view 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. --- diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm index 61f4deba..4a3896d4 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);