From bb87c04a7113d3c2f9e85d0c2153d2693a19a52e Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sat, 3 Sep 2022 18:42:32 +0200 Subject: [PATCH] Wrap "words separated by BLANK characters" groups in LaTeX commands --- README.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 2aadeab..a8d2000 100644 --- a/README.org +++ b/README.org @@ -2262,9 +2262,9 @@ configuration. #'engrave-faces-latex--protect-content-mathescape #'engrave-faces-latex--protect-content) content))) - ;; Wrap "words separated by space characters" groups in LaTeX commands. + ;; Wrap "words separated by blank characters" groups in LaTeX commands. ;; Do not wrap newlines and other whitespace separating those groups. - (let ((regexp (rx (or (group-n 1 (+ graph ) (* (*? print) (+ graph))) + (let ((regexp (rx (or (group-n 1 (+ graph ) (* (+ blank) (+ graph))) (group-n 2 (+ (any "\n" space)))))) (slug (when (and style (eq engrave-faces-latex-output-style 'preset))