From e94c904b0ecfb54305f8631984fd6c4865726f2b Mon Sep 17 00:00:00 2001 From: Sandro Figo Date: Thu, 16 Feb 2023 10:59:07 +0100 Subject: [PATCH] Fix IsEmpty property for release notes that have empty lines --- source/Nuke.Common/ChangeLog/ReleaseNotes.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Nuke.Common/ChangeLog/ReleaseNotes.cs b/source/Nuke.Common/ChangeLog/ReleaseNotes.cs index be5b2feff..56e9de375 100644 --- a/source/Nuke.Common/ChangeLog/ReleaseNotes.cs +++ b/source/Nuke.Common/ChangeLog/ReleaseNotes.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; +using System.Linq; using JetBrains.Annotations; using NuGet.Versioning; @@ -15,7 +16,7 @@ public class ReleaseNotes /// /// Gets a value indicating whether this release notes section contains notes. /// - public bool IsEmpty => Notes.Count == 0; + public bool IsEmpty => Notes.All(string.IsNullOrWhiteSpace); /// /// Gets a value indicating whether this release notes section is unreleased (vNext).