diff options
author | Jeff King <peff@peff.net> | 2020-02-11 12:19:53 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-11 10:20:42 -0800 |
commit | ffbea1816dcbce12d4ffb304ddf8993ef611d4f1 (patch) | |
tree | 1f4f5f1bbf325e617985e3a693ae3d88332f9108 /po/TEAMS | |
parent | mailinfo: simplify parsing of header values (diff) | |
download | tgif-ffbea1816dcbce12d4ffb304ddf8993ef611d4f1.tar.xz |
mailinfo: be more liberal with header whitespace
RFC822 and friends allow arbitrary whitespace after the colon of a
header and before the values. I.e.:
Subject:foo
Subject: foo
Subject: foo
all have the subject "foo". But mailinfo requires exactly one space.
This doesn't seem to be bothering anybody, but it is pickier than the
standard specifies. And we can easily just soak up arbitrary whitespace
there in our parser, so let's do so.
Note that the test covers both too little and too much whitespace, but
the "too much" case already works fine (because we later eat leading and
trailing whitespace from the values).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'po/TEAMS')
0 files changed, 0 insertions, 0 deletions