diff options
-rwxr-xr-x | calm/hint.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/calm/hint.py b/calm/hint.py index 71fa7b9..c202f8c 100755 --- a/calm/hint.py +++ b/calm/hint.py @@ -297,6 +297,10 @@ def hint_file_parse(fn, kind, strict=False): # license must be a valid spdx license expression if key == 'license' and licensing: + # first, normalize whitespace in license, so we don't + # get spurious normalization warnings over whitespace + value = re.sub(r'\s+', ' ', value) + try: licensing.parse(value, strict=True) le = licensing.validate(value, strict=True) |