Skip to content

Commit

Permalink
Fix 64 Basic token parser to not add new line if current basic progra…
Browse files Browse the repository at this point in the history
…m is empty.
  • Loading branch information
highbyte committed Oct 3, 2024
1 parent d0c1cf0 commit 7b6f9ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public string GetBasicText(byte[] basicPrg, bool spaceAfterLineNumber = true, bo
break;
}

if (addNewLineAfterLastCharacter)
if (sb.Length > 0 && addNewLineAfterLastCharacter)
sb.AppendLine();

return sb.ToString();
Expand Down

0 comments on commit 7b6f9ef

Please sign in to comment.