]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
repobrowse: convert to using PublicInbox::Hval::PRE
authorEric Wong <e@80x24.org>
Tue, 15 Dec 2015 21:04:20 +0000 (21:04 +0000)
committerEric Wong <e@80x24.org>
Tue, 5 Apr 2016 18:58:27 +0000 (18:58 +0000)
Avoiding nested quoting.

lib/PublicInbox/RepoBrowseCommit.pm
lib/PublicInbox/RepoBrowseLog.pm

index ed7fa3f142c768ae98a00991919dc6865f374a44..822312ad2ce0523720c8fd904f206c42e6a0993b 100644 (file)
@@ -26,7 +26,7 @@ sub git_commit_stream {
 
        my $rel = $req->{relcmd};
        my $x = "<html><head><title>$s</title></head><body>" .
-               "<pre\nstyle='white-space:pre-wrap'>" .
+               PublicInbox::Hval::PRE .
                "   commit $H" .
                "   author $au\t$ad\n" .
                "committer $cu\t$cd\n" .
index c8d3f0acadd51c97900bb4095a2c9e434aa326c1..88f8c52c5efe566478bb3d217ccbe04e3a727399 100644 (file)
@@ -76,9 +76,9 @@ sub git_log_stream {
                                PublicInbox::Hval->new_oneline($an)->as_html;
                        $b = PublicInbox::Hval->new($b)->as_html;
                        $s .= "<td>$ah</td></tr>" .
-                               "<tr><td colspan=3><pre\n" .
-                               "style='white-space:pre-wrap'>$b</pre>".
-                               '</td></tr>';
+                               '<tr><td colspan=3>' .
+                               PublicInbox::Hval::PRE .
+                               $b . '</pre></td></tr>';
                } else {
                        $s .= '</tr>';
                }