We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When rendering a table with an indent, if the table has no headers then the top border is not indented.
require 'tty-table' ok = TTY::Table.new(header: ["H1","H2","H3"]) ok << ["a1","a2","a3"] ok << ["b1","b2","b3"] puts ok.render(:ascii, indent: 12) broken = TTY::Table.new broken << ["a1","a2","a3"] broken << ["b1","b2","b3"] puts broken.render(:ascii, indent: 12)
+--+--+--+ |H1|H2|H3| +--+--+--+ |a1|a2|a3| |b1|b2|b3| +--+--+--+ +--+--+--+ |a1|a2|a3| |b1|b2|b3| +--+--+--+
The text was updated successfully, but these errors were encountered:
I have raised PR #44 to fix this.
Sorry, something went wrong.
No branches or pull requests
Describe the problem
When rendering a table with an indent, if the table has no headers then the top border is not indented.
Steps to reproduce the problem
Actual behaviour
Expected behaviour
Describe your environment
The text was updated successfully, but these errors were encountered: