-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
border.separator = :each_row #18
Comments
The README is wrong, but it works. You need to pass it: renderer.border.separator = TTY::Table::Border::EACH_ROW |
I tryed that and got the same result...
I am using Ruby 2.6.2. and tty-table (0.10.0. This is the first time I've tried the gem since upgrading to Ruby 2.6.2. I ran into some gem conflicts with version 1.5.0 of unicode-display_width. I had to uninstall it an reinstall version 1.4.1 in order to get tty-table to load into my IRB session. |
This option works when the renderer class is used as evidenced in tests. I'm rather busy now preparing to speak at a conference next week. When I'm back I will try to find some time to look at some issues in this gem. Do you have anytime to submit PR that fixes this? Re |
@MadBomber The render method seems to have some interesting behavior with regards to what it returns--if you store the rendered table into a variable then put it, it works. @piotrmurach I'm a student with a pretty busy schedule, but I'll see if I can find a little time to address this. It's certainly good experience for me to hunt things like this down!
|
Okay, I've found some weirdness here. It looks like the issue isn't actually in the function, but in how it is called in conjunction with puts. The block executes fine as this:
If you run it as a do/end block, it ignores the function aspect and just calls |
@RylanBauermeister good find! I wasn't aware of this behaviour. @MadBomber I've released new |
This option as documented in the README does not work. Here is my IRB session:
The text was updated successfully, but these errors were encountered: