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

Table - Long 'star' cell with no space takes to much space #271

Closed
natcohen opened this issue Apr 23, 2015 · 3 comments
Closed

Table - Long 'star' cell with no space takes to much space #271

natcohen opened this issue Apr 23, 2015 · 3 comments

Comments

@natcohen
Copy link

When I fill a cell with a very long string (without space), it doesn't break the string in order keep the right size for the cell and pushes the rest of the table outside the page...

table: {
widths: ['', '', '', ''],
body: [
[ 'width=100000000000000000000000000000000000000000000000000000000000000', 'star-sized', 'width=200', 'star-sized'],
[ 'fixed-width cells have exactly the specified width', { text: 'nothing interesting here', italics: true, color: 'gray' }, { text: 'nothing interesting here', italics: true, color: 'gray' }, { text: 'nothing interesting here', italics: true, color: 'gray' }]
]
}

@jthoenes jthoenes added the bug label Apr 27, 2015
@jthoenes
Copy link
Contributor

Hi @natcohen, that's a know issue/bug. As we break words only when there is breakable white-space between, this goes bad in tables. I don't know what a good strategy for solving it would be.

Suggestions are welcome, pull request even more.

@natcohen
Copy link
Author

natcohen commented May 5, 2015

Well, IMHO the best solution is to cut the word to fit the table and add '-'...

@liborm85 liborm85 added the table label Feb 5, 2017
@liborm85
Copy link
Collaborator

duplicate: #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants