* lisp/gnus/mm-uu.el (mm-uu-type-alist): Fix end-regexp of git-format-patch.

Replace git-format-patch end-regexp "^-- " with "^$".
The regexp "^-- " was intended to mark the end
of the git-formatted patch.  However, git-format-patch
can produce patches without a signature.  Also often
patches are just copy-pasted from the output of 'C-x v d'.
Therefore, now an empty line marks the end of the patch
since properly formatted patches don't contain an empty line
and properly configured MUAs don't strip whitespace from patches.
Suggested by Luis Henriques <henrix@camandro.org> and
Kévin Le Gouguec <kevin.legouguec@gmail.com> in bug#72059.
This commit is contained in:
Juri Linkov 2024-07-12 20:54:53 +03:00
parent e64a34e62b
commit 900f135b68

View file

@ -173,7 +173,7 @@ This can be either \"inline\" or \"attachment\".")
,#'mm-uu-diff-test)
(git-format-patch
"^diff --git "
"^-- "
"^$"
,#'mm-uu-diff-extract
nil
,#'mm-uu-diff-test)