]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
repobrowse: use style for whitespace wrapping
authorEric Wong <e@80x24.org>
Tue, 5 Jan 2016 00:14:48 +0000 (00:14 +0000)
committerEric Wong <e@80x24.org>
Tue, 5 Apr 2016 18:58:27 +0000 (18:58 +0000)
This lets us use multiple <pre> sections without redundant
attributes.

lib/PublicInbox/RepoBrowseGitCommit.pm

index 3f4148fbd0b6f60eed9930a44ccc807a9252b513..73d6b847424feb541cbb23dbad3f67f0568311c8 100644 (file)
@@ -31,8 +31,8 @@ sub git_commit_stream {
        my $rel = $req->{relcmd};
        my $qs = $q->qs(id => $h);
        chomp $H;
-       my $x = "<html><head><title>$s</title></head><body>" .
-               PublicInbox::Hval::PRE .
+       my $x = "<html><head><title>$s</title>" .
+               PublicInbox::Hval::STYLE . '</head><body><pre>' .
                "   commit $H (<a\nhref=\"${rel}patch$qs\">patch</a>)\n" .
                "     tree <a\nhref=\"${rel}tree?id=$h\">$t</a>";