From 6defec33517e546664635ca5176d8620fb0a23d0 Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Tue, 17 Nov 2020 17:55:13 -0500 Subject: * rt-liberation-viewer.el: --- rt-liberation-viewer.el | 11 ++++++----- 1 file 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)) -- cgit v1.2.3