From 72698d9a399dbf3d2fb7f11e0ac5c19f4cd957fa Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Thu, 17 Oct 2024 13:45:24 +0200 Subject: [PATCH 1/2] Get rid of newline at start of lint output Signed-off-by: Carmen Bianca BAKKER --- src/reuse/lint.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/reuse/lint.py b/src/reuse/lint.py index 7d60d7129..cf5ae838f 100644 --- a/src/reuse/lint.py +++ b/src/reuse/lint.py @@ -136,7 +136,6 @@ def format_plain(report: ProjectReport) -> str: output.write(f"* {file}\n") output.write("\n") - output.write("\n") output.write("# " + _("SUMMARY")) output.write("\n\n") From 78a29377025db12bcf5d0a96e9f31ee4848c91a1 Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Thu, 17 Oct 2024 13:48:53 +0200 Subject: [PATCH 2/2] Add change log entry Signed-off-by: Carmen Bianca BAKKER --- changelog.d/fixed/plain-format-output-new-line-fix.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelog.d/fixed/plain-format-output-new-line-fix.md diff --git a/changelog.d/fixed/plain-format-output-new-line-fix.md b/changelog.d/fixed/plain-format-output-new-line-fix.md new file mode 100644 index 000000000..58e8c617a --- /dev/null +++ b/changelog.d/fixed/plain-format-output-new-line-fix.md @@ -0,0 +1,2 @@ +- The plain output of `lint` has been slightly improved, getting rid of an + errant newline. (#1091)