[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rt-liberation 1038ecc 53/68: * rt-liberation.el: fill c
From: |
Yoni Rabkin |
Subject: |
[elpa] externals/rt-liberation 1038ecc 53/68: * rt-liberation.el: fill content |
Date: |
Wed, 16 Dec 2020 12:11:15 -0500 (EST) |
branch: externals/rt-liberation
commit 1038ecc683545100d0a3df972be1c3e1a8501c4f
Author: Yoni Rabkin <yoni@rabkins.net>
Commit: Yoni Rabkin <yoni@rabkins.net>
* rt-liberation.el: fill content
---
rt-liberation.el | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/rt-liberation.el b/rt-liberation.el
index 623c029..bf59ede 100644
--- a/rt-liberation.el
+++ b/rt-liberation.el
@@ -1347,21 +1347,28 @@ ASSOC-BROWSER if non-nil should be a ticket browser."
(goto-char (point-min))
(if (re-search-forward "^This transaction appears to have no content"
(point-max) t)
""
+ ;; remove leading blank lines
(save-excursion
(goto-char (point-min))
(re-search-forward "[[:graph:]]" (point-max) t)
(forward-line -1)
(flush-lines "^[[:space:]]+$" (point-min) (point)))
-
+ ;; remove trailing blank lines
+ (save-excursion
+ (goto-char (point-max))
+ (re-search-backward "[[:graph:]]" (point-min) t)
+ (forward-line 2)
+ (flush-lines "^[[:space:]]+$" (point-max) (point)))
;; Convert the 9 leading whitespaces from RT's comment lines.
(goto-char (point-min))
(insert " ")
(while (re-search-forward "^ " (point-max) t)
(replace-match " "))
-
- (fill-region (point-min)
- (point-max))
-
+ ;; fill
+ (let ((paragraph-separate " >[[:space:]]+$"))
+ (fill-region (point-min)
+ (point-max)))
+ ;; finally
(buffer-substring (point-min)
(point-max)))))
- [elpa] externals/rt-liberation 3376123 63/68: * rt-liberation-rest.el: better user interaction, (continued)
- [elpa] externals/rt-liberation 3376123 63/68: * rt-liberation-rest.el: better user interaction, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation f682e7b 68/68: Merge branch 'master' into externals/rt-liberation, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 0fc4737 09/68: documentation fixes, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation ed929f5 16/68: integrate changes post-ELPA synchronization, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 53e56b7 31/68: * rt-liberation-viewer.el: history parse, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation a9786cf 23/68: * NEWS: update, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 1000e89 11/68: * doc/rt-liberation.texinfo: update manual, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 680e177 48/68: * rt-liberation.el: remove leading blank lines, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation cbfb99c 49/68: * rt-liberation.el: start making sense of section types, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation b23df79 50/68: * rt-liberation.el: forward and back section movement, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 1038ecc 53/68: * rt-liberation.el: fill content,
Yoni Rabkin <=
- [elpa] externals/rt-liberation dacb48c 54/68: * rt-liberation.el: trim down viewer2 key map., Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 3a0dfc3 55/68: * rt-liberation.el: section data, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation a99fc59 59/68: * rt-liberation.el: high recenter, Yoni Rabkin, 2020/12/16