accomodates for white space at the end of lines now.

This commit is contained in:
Harrison Deng 2018-12-09 01:21:57 -06:00
parent 1e5aab564e
commit f442be1ba6

View File

@ -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();