Fix Bug: Dump(), Console.WriteLine() adding line breaks in long string output
When outputting a long string, LinqPad outputs line breaks not in the string after each block of 100,000 characters.
This impacts string.Dump() (with no description), Console.Write(string), and Console.WriteLine(string).
This is not just a visual issue with the output window. If you copy and paste from the output window into a text editor, the line breaks are present in the data.
string.Dump("any text") does not exhibit the problem.
Console.Write and Console.WriteLine when used in a C# console application (Visual Studio compiled) do not exhibit this behavior.
LinqPad C# Program demonstrating the behavior:
void Main()
{
"".Dump("Console.Write() has breaks at 100K chars (three lines displayed):");
Console.Write(new string('.', 250000));
Console.WriteLine();
"".Dump("Console.WriteLine() has breaks at 100K chars (three lines displayed):");
Console.WriteLine(new string('.', 250000));
"".Dump("Dump() has breaks at 100K chars (three lines displayed):");
(new string('.', 250000)).Dump();
"".Dump("Dump(\"\") has breaks at 100K chars (three lines displayed):");
(new string('.', 250000)).Dump("");
(new string('.', 250000)).Dump("No breaks with Dump(\"something\") (one line displayed)");
}
Tested on:
Windows 10 Pro
LinqPad 5 Premium v5.36.03(AnyCPU)