]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
Revert "view: perform highlighting for space-prefixed diffs"
[public-inbox.git] / lib / PublicInbox / View.pm
index 35e171b06959e364437c3f884919cd4e8439b104..47a2046e43da31d8533268a56ad6c4d290e50168 100644 (file)
@@ -568,9 +568,7 @@ sub add_text_body {
        # always support diff-highlighting, but we can't linkify hunk
        # headers for solver unless some coderepo are configured:
        my $diff;
-       if ($s =~ /^([ \t]*)(?:diff|---|\+{3}) /ms) {
-               $ctx->{-dpfx} = $1 if $1; # for format-patch --interdiff output
-
+       if ($s =~ /^(?:diff|---|\+{3}) /ms) {
                # diffstat anchors do not link across attachments or messages:
                $idx[0] = $upfx . $idx[0] if $upfx ne '';
                $ctx->{-apfx} = join('/', @idx);