Skip to content
This repository was archived by the owner on Mar 4, 2018. It is now read-only.

Commit c812db0

Browse files
committed
Var rename for CL line start
1 parent 89a9117 commit c812db0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LanguageTools/CLParser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ public static string[] SplitUpLine(string Line, int StartSpace, int RecordLength
9595
}
9696
if (current != "") pieces.Add(current);
9797

98-
int commandLen = pieces[0].Length + 1;
98+
int parmStart = StartSpace + pieces[0].Length + 1;
9999

100100
current = "".PadLeft(StartSpace);
101101
foreach (string piece in pieces)
102102
{
103-
if ((current.Length + piece.Length) < RecordLength)
103+
if ((current.Length + piece.Length + 2) < RecordLength)
104104
{
105105
current += piece + ' ';
106106
}
107107
else
108108
{
109109
lines.Add(current.TrimEnd() + " +");
110-
current = "".PadLeft(StartSpace + commandLen) + piece + ' ';
110+
current = "".PadLeft(parmStart) + piece + ' ';
111111
}
112112
}
113113

0 commit comments

Comments
 (0)