Home

Single leading space is not displayed

Consider this program
void Main()
{
    Console.WriteLine("a");
    Console.WriteLine(" a");
    Console.WriteLine("  a");
}
The expected output is
a
 a
  a
But LINQPad displays the output as
a
a
  a
If you copy-paste the output into another program, the leading space is there as expected. (LINQPad version 4.55.03.)

Comments

Sign In or Register to comment.