accomodates for white space at the end of lines now.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user