]> git.draconx.ca Git - dxcommon.git/commit
gen-strtab.awk: Allow repeated whitespace in one-line strings.
authorNick Bowler <nbowler@draconx.ca>
Tue, 5 Dec 2023 01:36:17 +0000 (20:36 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 5 Dec 2023 01:36:17 +0000 (20:36 -0500)
commitc3f53b697f5dd5ecd5a5f74e94ec0fd55b0f2764
tree5e687ece71e551a90936a2ad8af1b5f6d99ecec0
parent9cacb902a5d6f6c4271ee3066e2efe13663f145a
gen-strtab.awk: Allow repeated whitespace in one-line strings.

The documentation says that, for a one-line string, all whitespace
immediately following the identifier is deleted.

It does not say that anything happens to other withespace on the line,
but it turns out that consecutive sequences of whitespace are replaced
by a single space.  This is unexpected.

Fix up the script so that doesn't happen, and add a test for this.
scripts/gen-strtab.awk
tests/scripts.at