Skip to content

Ability to have multiple lines in a cell in Table#43

Merged
danielbachhuber merged 14 commits intomasterfrom
constrain-table-43
Aug 4, 2014
Merged

Ability to have multiple lines in a cell in Table#43
danielbachhuber merged 14 commits intomasterfrom
constrain-table-43

Conversation

@danielbachhuber
Copy link
Copy Markdown
Member

Currently (I think) it's not possible to display multiline strings in a table. I t would be great if the table supported this, or even if it auto wrapped long lines if it's going to take the table width wider that the terminal window.

Thoughts?

@jlogsdon
Copy link
Copy Markdown
Contributor

Good catch. I'll see if I can work something out over the next couple days.

@danielbachhuber danielbachhuber added this to the 0.9.5 milestone Jul 18, 2014
@danielbachhuber
Copy link
Copy Markdown
Member

I think auto-wrapping will be the way to go.

@danielbachhuber danielbachhuber modified the milestones: 0.10.0, 0.9.5 Jul 19, 2014
@danielbachhuber
Copy link
Copy Markdown
Member

Looking like this:

image

My hesitation is that it's lossy, but technically this output format doesn't have to be exact.

@danielbachhuber
Copy link
Copy Markdown
Member

I also need to sort out a better algorithm for determining column width. Right now it resizes down to the average width, but really it should be the average of the remaining width.

danielbachhuber added a commit that referenced this pull request Aug 4, 2014
Ability to have multiple lines in a cell in Table
@danielbachhuber danielbachhuber merged commit 64f0431 into master Aug 4, 2014
@danielbachhuber danielbachhuber deleted the constrain-table-43 branch August 4, 2014 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants