Skip to content

Fix some issues with table wrapping of lists - #7598

Merged
fdncred merged 2 commits into
nushell:mainfrom
zhiburt:fix-table-list-truncation
Dec 25, 2022
Merged

fdncred merged 2 commits into
nushell:mainfrom
zhiburt:fix-table-list-truncation

Conversation

@zhiburt

@zhiburt zhiburt commented Dec 24, 2022 •

Copy link
Copy Markdown
Contributor

close #7591

I tend to think it must be addressed.
But I'd verify it @rgwood.

PS: I've noticed how table -e and table with the same width wraps a bit differently sometimes. (I guess it also must be addressed......)

Signed-off-by: Maxim Zhiburt <[email protected]>
@rgwood

rgwood commented Dec 24, 2022

Copy link
Copy Markdown
Contributor

Thanks for the speedy fix!

Before:
image

After:
image

Much better but that 4th row seems to be wrapping incorrectly (it should not split 2022 into 2\n022) 🤔

@fdncred

fdncred commented Dec 25, 2022

Copy link
Copy Markdown
Contributor

Looks good to me too. All the previous ways that I could break it seem to be fixed now. Thanks!

@fdncred
fdncred merged commit b499e7c into nushell:main Dec 25, 2022
@rgwood

rgwood commented Dec 25, 2022

Copy link
Copy Markdown
Contributor

Still think we need to address the wrapping issue in my screenshot, but maybe that's a separate issue.

@fdncred

fdncred commented Dec 25, 2022 •

Copy link
Copy Markdown
Contributor

Oh, I missed your last comment Reilly. Sorry.

@zhiburt what do you think about Reilly's weird 2022 wrapping?

fdncred pushed a commit that referenced this pull request Dec 27, 2022
ref #7598

To be honest I was not able to obtain such results in basic mode as you
@rgwood.
But I've got it in `table -e`.

So this must fix the `table -e` wrapping.

Could you verify if it got fixed?

Signed-off-by: Maxim Zhiburt <[email protected]>
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.

list<string> values are not shown if a string is too wide

3 participants