]> git.eshelyaron.com Git - emacs.git/commitdiff
Replace literal whitespace with `\s`
authorStefan Kangas <stefankangas@gmail.com>
Sat, 22 Jun 2024 16:42:06 +0000 (18:42 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 22 Jun 2024 20:40:25 +0000 (22:40 +0200)
* test/lisp/vc/log-edit-tests.el (log-edit-fill-entry-confinement)
(log-edit-fill-entry-space-substitution)
(log-edit-fill-entry-initial-wrapping): Replace literal space character
with '\s', to avoid tripping up merge scripts.

(cherry picked from commit 4a76af51bb685e3082b152c35117bab1ed511d40)

test/lisp/vc/log-edit-tests.el

index db60d21f137573f0472225da79e9e5d7601e0563..8dc0f1d89550d5bfc8e3f9767e315758236d738b 100644 (file)
@@ -180,9 +180,7 @@ lines."))))
       (insert string4)
       (let ((fill-column 39)) (log-edit-fill-entry))
       (should (equal (buffer-string)
-                     ;; There is whitespace after "file2.txt" which
-                     ;; should not be erased!
-                     "* file2.txt 
+                     "* file2.txt\s
 (abcdefghijklmnopqrstuvwxyz):")))))
 
 (ert-deftest log-edit-fill-entry-space-substitution ()
@@ -228,7 +226,7 @@ division.
 (sfnt_round_none, sfnt_round_to_grid, sfnt_round_to_double_grid)
 "
           wanted "
-* src/sfnt.c 
+* src/sfnt.c\s
 (xmalloc, xrealloc):
 Improve behavior
 upon allocation
@@ -330,7 +328,7 @@ new line.
 (but_this_entry_should_not): With the prose displaced to the
 next line instead."
           wanted "
-* src/sfnt.c 
+* src/sfnt.c\s
 (long_entry_1): This
 entry should be
 placed on a new