Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lassevk opened this issue Nov 24, 2023 · 2 comments · Fixed by #130
Closed
Labels
bug Something isn't working
Milestone

Comments

@lassevk
Copy link

lassevk commented Nov 24, 2023

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
Copy link
Author

lassevk commented Nov 24, 2023

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
Copy link
Owner

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

@tareqimbasher tareqimbasher added the bug Something isn't working label Nov 26, 2023
tareqimbasher added a commit that referenced this issue Nov 27, 2023
Fixes bug reported in #118: incorrect newline formatting
@tareqimbasher tareqimbasher added this to the v0.6.1 milestone Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants