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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the way the output of table is printed in print() #12895

Merged
merged 1 commit into from
May 17, 2024

Conversation

devyn
Copy link
Contributor

@devyn devyn commented May 17, 2024

Description

Forgot that I fixed this already on my branch, but when printing without a display output hook, the implicit call to table gets its output mangled with newlines (since #12774). This happens when running nu -c or a script file.

Here's that fix in one PR so it can be merged easily.

Tests + Formatting

  • 馃煝 toolkit fmt
  • 馃煝 toolkit clippy
  • 馃煝 toolkit test
  • 馃煝 toolkit test stdlib

@devyn devyn marked this pull request as ready for review May 17, 2024 13:56
@devyn devyn merged commit 59f7c52 into nushell:main May 17, 2024
15 checks passed
@devyn devyn deleted the fix-table-output-bytestream-printing branch May 17, 2024 14:18
@hustcer hustcer added this to the v0.94.0 milestone May 17, 2024
FilipAndersson245 pushed a commit to FilipAndersson245/nushell that referenced this pull request May 18, 2024
)

# Description

Forgot that I fixed this already on my branch, but when printing without
a display output hook, the implicit call to `table` gets its output
mangled with newlines (since nushell#12774). This happens when running `nu -c`
or a script file.

Here's that fix in one PR so it can be merged easily.

# Tests + Formatting
- 馃煝 `toolkit fmt`
- 馃煝 `toolkit clippy`
- 馃煝 `toolkit test`
- 馃煝 `toolkit test stdlib`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants