(describe-package-1): Handle (nil . "string") in :maintainer

* lisp/emacs-lisp/package.el (describe-package-1): Refine the
check to distinguish the old single-maintainer format from the
new multi-maintainer format.  (bug#69712)
This commit is contained in:
Stefan Monnier 2024-05-16 11:01:11 -04:00
parent ee3ef57c24
commit acfb2c6163

View file

@ -2947,7 +2947,7 @@ Helper function for `describe-package'."
(insert " "))
(insert "\n"))
(when maintainers
(when (stringp (car maintainers))
(unless (and (listp (car maintainers)) (listp (cdr maintainers)))
(setq maintainers (list maintainers)))
(package--print-help-section
(if (cdr maintainers) "Maintainers" "Maintainer"))