; * eldoc-box.el (eldoc-box--condense-large-newline-gaps): Minor fix.

This commit is contained in:
Yuan Fu 2023-03-08 21:21:36 -08:00
parent bcf2d5a952
commit eec688c1fc
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -672,8 +672,10 @@ height."
(save-excursion
(goto-char (point-min))
(while (re-search-forward
(rx (>= 2 (or "\n" (seq "```" (+ (syntax word))) "<br>"
(seq bol (+ (or " " "\t" "")) eol))))
(rx (>= 2 (or "\n"
(seq bol "```" (* (syntax word)) "\n")
(seq bol "<br>" "\n")
(seq bol (+ (or " " "\t" "")) "\n"))))
nil t)
(if (or (eq (match-beginning 0) (point-min))
(eq (match-end 0) (point-max)))