mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
emacs: More functionality for `notmuch-wash-tidy-citations'.
Add: - Insert a blank line before a citation if there isn't one, - Insert a blank line after a citation if there isn't one.
This commit is contained in:
parent
636925b40b
commit
5ebf5efcb0
1 changed files with 11 additions and 1 deletions
|
@ -214,7 +214,17 @@ Perform four transformations on the message body:
|
|||
;; text.
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward "\\(^>[> ]*\n\\)\\(^$\\|^[^>].*\\)" nil t)
|
||||
(replace-match "\\2")))
|
||||
(replace-match "\\2"))
|
||||
|
||||
;; Insert a blank line before a citation if there isn't one.
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward "\\(^[^>]+\\)\n>" nil t)
|
||||
(replace-match "\\1\n\n>"))
|
||||
|
||||
;; Insert a blank line after a citation if there isn't one.
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward "\\(^>.+\\)\n\\([^>]\\)" nil t)
|
||||
(replace-match "\\1\n\n\\2")))
|
||||
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue