From a18d615db00d84e4e65193e43e44bd5d51810153 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Tue, 23 Jul 2024 22:40:41 +0200 Subject: [PATCH] Delete matching of whitespace in ispell's LaTeX env names * lisp/textmodes/ispell.el (ispell-begin-tex-skip-regexp): Remove matching of arbitrary whitespaces in LaTeX environment names when wrapping them inside \begin{}. (bug#72262) (cherry picked from commit ebac13844294483f708bb92699ee7da7a1b2db21) --- lisp/textmodes/ispell.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 2e97043fdb6..74058b47907 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -3318,9 +3318,7 @@ Generated from `ispell-tex-skip-alists'." "\\|" ;; keys wrapped in begin{} (mapconcat (lambda (lst) - (concat "\\\\begin[ \t\n]*{[ \t\n]*" - (car lst) - "[ \t\n]*}")) + (concat "\\\\begin[ \t\n]*{" (car lst) "}")) (car (cdr ispell-tex-skip-alists)) "\\|"))) -- 2.39.2