From 47fc14590e0c3eb159b2f679c540844b414e0874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 12 Jun 2022 19:56:38 +0200 Subject: Fix paragraph-start, paragraph-separate. --- xroff.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xroff.el') diff --git a/xroff.el b/xroff.el index 8c3ecc2..48ba533 100644 --- a/xroff.el +++ b/xroff.el @@ -26,9 +26,8 @@ ;; A start or end tag by itself on a line separates a paragraph. ;; This is desirable because SGML discards a newline that appears ;; immediately after a start tag or immediately before an end tag. - (setq-local paragraph-start (concat "[ \t]*$\\|\ -\[ \t]*")) - (setq-local paragraph-separate (concat paragraph-start "$")) + (setq-local paragraph-start "<\\([^>]\\)+>") + (setq-local paragraph-separate "$\\|\\]>") (setq-local adaptive-fill-regexp "[ \t]*") (add-hook 'fill-nobreak-predicate 'sgml-fill-nobreak nil t) (setq-local indent-line-function 'sgml-indent-line) -- cgit v1.2.3