From f442be1ba6425e46771050e2a2f2d8d064518a14 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sun, 9 Dec 2018 01:21:57 -0600 Subject: [PATCH] accomodates for white space at the end of lines now. --- RecrownedAthenaeum.ConsoleTools/ConsoleUtilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecrownedAthenaeum.ConsoleTools/ConsoleUtilities.cs b/RecrownedAthenaeum.ConsoleTools/ConsoleUtilities.cs index 1837265..73ee3db 100644 --- a/RecrownedAthenaeum.ConsoleTools/ConsoleUtilities.cs +++ b/RecrownedAthenaeum.ConsoleTools/ConsoleUtilities.cs @@ -20,7 +20,7 @@ namespace RecrownedAthenaeum.Tools int currentLineSize = 0; for (int i = 0; i < words.Length; i++) { - if (currentLineSize + words[i].Length >= Console.BufferWidth - Console.CursorLeft) + if (currentLineSize + words[i].Length >= Console.BufferWidth - Console.CursorLeft -1) { currentLineSize = 0; stringBuilder.AppendLine();