Unexpected output with Console.Write
When using
LinqPad version: v5.22.00 beta
Test code:
Output:
Console.Write
with an empty string, in the Results pane a carriage return and linefeed are inserted instead. This does not happen in a Console project using Visual Studio.LinqPad version: v5.22.00 beta
Test code:
void Main()
{
Console.Write("Hello");
Console.Write("|");
Console.Write("World");
Console.Write("|");
Console.Write(""); //Writing an empty string
Console.Write("|");
Console.Write("Hello");
Console.Write("|");
Console.Write("World");
}
Output:
Hello|World|Expected output:
|Hello|World
Hello|World||Hello|WorldPlease advise.
Comments
When viewing the source of the Results pane I see this:
<body><div id='final'>Hello|World|<br />|Hello|World</div></body>
Is there any way to prevent the break from being inserted?
http://www.linqpad.net/download.aspx#beta