Skip to content

Commit

Permalink
Refactor ListViewItem creation to use ToListViewText.
Browse files Browse the repository at this point in the history
Updated the ListViewItem initialization to ensure proper text formatting by calling `ToListViewText` on `paragraph.Text` and `result`. This improves readability and consistency in the UI output.
  • Loading branch information
ivandrofly committed Feb 15, 2025
1 parent 2959ce0 commit 6a6670b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Commas/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ await Task.Run(async () =>

if (beforeFixCommaCount != afterFixCommaCount)
{
progress.Report((new ListViewItem(new[] { paragraph.Text, result })
progress.Report((new ListViewItem(new[] { paragraph.Text.ToListViewText(), result.ToListViewText() })
{
Tag = paragraph,
}, index));
Expand Down

0 comments on commit 6a6670b

Please sign in to comment.