diff --git a/SPDX.py b/SPDX.py index 75ff65e4..bd60dd02 100644 --- a/SPDX.py +++ b/SPDX.py @@ -98,7 +98,7 @@ for file in files: fail = True failed = True if not failed: - license_name = line.split("SPDX-License-Identifier: ")[1][:-1] + license_name = line.split("SPDX-License-Identifier: ")[1].strip() status["license"] = True if os.path.isfile(BUILD_DIR + f"/LICENSES/{license_name}.txt"): status["licensefile"] = True