summaryrefslogtreecommitdiff
path: root/rt-liberation-viewer.el
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2020-11-17 17:55:13 -0500
committerYoni Rabkin <yoni@rabkins.net>2020-11-17 17:55:13 -0500
commit6defec33517e546664635ca5176d8620fb0a23d0 (patch)
tree032a2889fe1182f2e560fb905ce76acc05a9d46d /rt-liberation-viewer.el
parentab6c820df3f529a44eb3a831b9a36d99c430dc33 (diff)
* rt-liberation-viewer.el:
Diffstat (limited to 'rt-liberation-viewer.el')
-rw-r--r--rt-liberation-viewer.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/rt-liberation-viewer.el b/rt-liberation-viewer.el
index 32ea3ce..e1d499b 100644
--- a/rt-liberation-viewer.el
+++ b/rt-liberation-viewer.el
@@ -70,11 +70,12 @@
(save-excursion
(setq section-field-end
(re-search-forward "\n\n" end nil)))
- (while (looking-at rt-liber-viewer-section-field-regexp)
- (setq section-field-alist
- (append section-field-alist
- `((,(match-string-no-properties 1) .
- ,(match-string-no-properties 2)))))
+ (while (not (looking-at "^\n"))
+ (when (looking-at rt-liber-viewer-section-field-regexp)
+ (setq section-field-alist
+ (append section-field-alist
+ `((,(match-string-no-properties 1) .
+ ,(match-string-no-properties 2))))))
(forward-line))
section-field-alist))