Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Ical.Net.Tests/Logging/ToLogExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//
//
// Copyright ical.net project maintainers and contributors.
// Licensed under the MIT license.
//
Expand Down Expand Up @@ -37,14 +37,14 @@ public static string ToLog(this IEnumerable<Occurrence>? occurrences)
return "No occurrences found.";
}

sb.Append(occurrenceList.Count).AppendLine(" occurrences:");
sb.Append(occurrenceList.Count).Append(" occurrences:\n");

foreach (var occurrence in occurrenceList)
{
sb.AppendLine(occurrence.ToLog());
sb.Append(occurrence.ToLog()).Append('\n');
}

return sb.ToString().TrimEnd(Environment.NewLine.ToCharArray());
return sb.ToString().TrimEnd('\n');
}

public static string ToLog(this Occurrence occurrence)
Expand Down
4 changes: 2 additions & 2 deletions Ical.Net.Tests/WikiSamples/RecurrenceWikiTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//
//
// Copyright ical.net project maintainers and contributors.
// Licensed under the MIT license.
//
Expand Down Expand Up @@ -704,7 +704,7 @@ private static string RemoveIrrelevantProperties(string generatedIcs, string[]?
.Where(e => !e.StartsWith("DTSTAMP"))
.Where(e => !(e.StartsWith("UID") && keep?.Contains("UID") != true))
.Where(e => !(e.StartsWith("SEQUENCE") && keep?.Contains("SEQUENCE") != true))
.Aggregate(new StringBuilder(), (acc, e) => acc.AppendLine(e), e => e.ToString().TrimEnd());
.Aggregate(new StringBuilder(), (acc, e) => acc.Append(e).Append('\n'), e => e.ToString().TrimEnd());

private static string ToWikiPeriodString(IEnumerable<Occurrence> occurrences)
=> occurrences.ToLog();
Expand Down
Loading