accomodates for white space at the end of lines now.
This commit is contained in:
parent
1e5aab564e
commit
f442be1ba6
@ -20,7 +20,7 @@ namespace RecrownedAthenaeum.Tools
|
|||||||
int currentLineSize = 0;
|
int currentLineSize = 0;
|
||||||
for (int i = 0; i < words.Length; i++)
|
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;
|
currentLineSize = 0;
|
||||||
stringBuilder.AppendLine();
|
stringBuilder.AppendLine();
|
||||||
|
Loading…
Reference in New Issue
Block a user