aboutsummaryrefslogtreecommitdiff
path: root/xroff.el
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-06-12 19:56:38 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-06-12 19:56:38 +0200
commit47fc14590e0c3eb159b2f679c540844b414e0874 (patch)
treebe6443b952b74c17f80e44b5787a47351c0c2b0b /xroff.el
parent92e817ce5417406006701f0c7060f8c692148fe6 (diff)
downloadlightroff-47fc14590e0c3eb159b2f679c540844b414e0874.tar.gz
Fix paragraph-start, paragraph-separate.
Diffstat (limited to 'xroff.el')
-rw-r--r--xroff.el5
1 files changed, 2 insertions, 3 deletions
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]*</?\\(" sgml-name-re sgml-attrs-re "\\)?>"))
- (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)