tests: replace significant invisible spaces with macros

To make them explicit, visible, avoid being accidentally trimmed.
Also prevents Git warnings, e.g. on `git am`.

Also:
- runtests: add support for `%spc%` and `%tab%` macros.
- test59: delete non-significant line-ending space.
- spacecheck.pl: drop line-ending whitespace exception for tests.

Closes #19300
This commit is contained in:
Viktor Szakats 2025-10-31 00:55:13 +01:00
parent 928363f28c
commit d29f14b9cf
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
41 changed files with 64 additions and 58 deletions

View file

@ -44,7 +44,7 @@ User-Agent: curl/%VERSION
extra-header: here
Accept: replaced
X-Custom-Header:
X-Test: foo;
X-Test: foo;%spc%
X-Test2: foo;
GET /%TESTNUMBER HTTP/1.1
@ -53,7 +53,7 @@ User-Agent: curl/%VERSION
extra-header: here
Accept: replaced
X-Custom-Header:
X-Test: foo;
X-Test: foo;%spc%
X-Test2: foo;
</protocol>