summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2020-12-01 22:21:42 -0500
committerYoni Rabkin <yoni@rabkins.net>2020-12-01 22:21:42 -0500
commit680e177b176d6c43cd8b5c41c6ece76447c5a573 (patch)
tree83934da87953562fff6b0ebcabdd6898c4c1b1e5
parent73a2ba0a1c8fa8eb2ff627c0a22156d69bf3be44 (diff)
* rt-liberation.el: remove leading blank lines
-rw-r--r--rt-liberation.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/rt-liberation.el b/rt-liberation.el
index 4af325f..1adee43 100644
--- a/rt-liberation.el
+++ b/rt-liberation.el
@@ -1309,6 +1309,12 @@ ASSOC-BROWSER if non-nil should be a ticket browser."
(with-temp-buffer
(insert content)
+ (save-excursion
+ (goto-char (point-min))
+ (re-search-forward "[[:graph:]]" (point-max) t)
+ (forward-line -1)
+ (flush-lines "^[[:space:]]+$" (point-min) (point)))
+
;; Convert the 9 leading whitespaces from RT's comment lines.
(goto-char (point-min))
(insert " ")