mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
Relax formatting requirements on NEWS when converting to HTML
* admin/admin.el (make-news-html-file): Accurately detect blocks even when not separated by blank lines. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
fe4b9df4f4
commit
5fdb5e3485
|
|
@ -947,11 +947,15 @@ $Date: %s $
|
|||
;; Format code blocks.
|
||||
(while (re-search-forward "^ " nil t)
|
||||
(let ((elisp-block (looking-at "(")))
|
||||
(backward-paragraph)
|
||||
(let ((paragraph-start "^ "))
|
||||
(backward-paragraph))
|
||||
(unless (looking-at paragraph-separate)
|
||||
(save-excursion (insert "\n")))
|
||||
(insert (if elisp-block
|
||||
"\n#+BEGIN_SRC emacs-lisp"
|
||||
"\n#+BEGIN_EXAMPLE"))
|
||||
(forward-paragraph)
|
||||
(let ((paragraph-start "^[^ ]"))
|
||||
(forward-paragraph))
|
||||
(insert (if elisp-block
|
||||
"#+END_SRC\n"
|
||||
"#+END_EXAMPLE\n"))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue