branch: main
commit 49e9ab4d5fe4b154b952b91fb0c07a236a8f2f64
Author: Paul Nelson <[email protected]>
Commit: Paul Nelson <[email protected]>
; Fix recent change
* latex.el (LaTeX--modify-math-1): Only insert additional space
after punctuation when there is already a space present (and
only one space).
---
latex.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/latex.el b/latex.el
index d7b2ef23..6760ccaf 100644
--- a/latex.el
+++ b/latex.el
@@ -9652,7 +9652,8 @@ marker that keeps track of cursor position."
(looking-at-p "[.?!]")
(save-excursion
(forward-char)
- (insert " ")))
+ (when (looking-at-p " [^ ]")
+ (insert " "))))
(end-of-line 2)
(indent-region start (point))))))