mirror of
https://github.com/correl/melpa.git
synced 2024-11-14 19:19:32 +00:00
The empty line(s) can be commented out or have whitespace
This commit is contained in:
parent
b66ca67da6
commit
bcd3ee7a02
1 changed files with 4 additions and 1 deletions
|
@ -447,9 +447,12 @@ The file is written to `package-build-working-dir'."
|
|||
;; Adapted from `describe-package-1'.
|
||||
(goto-char (point-min))
|
||||
(save-excursion
|
||||
(when (re-search-forward "^;;; Commentary:\n+" nil t)
|
||||
(when (re-search-forward "^;;; Commentary:\n" nil t)
|
||||
(replace-match ""))
|
||||
(while (re-search-forward "^\\(;+ ?\\)" nil t)
|
||||
(replace-match ""))
|
||||
(goto-char (point-min))
|
||||
(when (re-search-forward "\\`\\( *\n\\)+" nil t)
|
||||
(replace-match "")))
|
||||
(delete-trailing-whitespace)
|
||||
(let ((coding-system-for-write buffer-file-coding-system))
|
||||
|
|
Loading…
Reference in a new issue