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

@ -76,6 +76,14 @@ For example, to insert the word hello 100 times:
%repeat[100 x hello]%
## Whitespace
To add significant whitespace characters at the end of the line, or to empty
lines:
%spc%
%tab%
## Insert capped epoch days
Mostly to test capped cookie expire dates: `%days[NUM]` inserts the number of