tareqimbasher / NetPad

A cross-platform C# editor and playground.
MIT License
1.25k stars 66 forks source link

Calling Dump with a title, and then dump without, adds more stuff to the titled region #118

Closed lassevk closed 9 months ago

lassevk commented 9 months ago

This example:

10.Dump();
20.Dump();

produces this output:

10
20

However, this example:

10.Dump("Title");
20.Dump();

produces this:

| Title
| 1020

I feel like the expected output should be something like this:

| Title
| 10
20

Tested in NetPad 0.6.0 on Windows.

lassevk commented 9 months ago

If I manually add an empty line between the two, it breaks the cycle:

10.Dump("Ttle");
"".Dump();
20.Dump();

Output:

| Title
| 10
20
tareqimbasher commented 9 months ago

Thank you for reporting this. Fix will go out with next release.