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

Fix #28: correct width for wide columns #37

Merged
merged 1 commit into from Oct 8, 2018
Merged

Fix #28: correct width for wide columns #37

merged 1 commit into from Oct 8, 2018

Commits on Oct 7, 2018

  1. fix #28: correct widths for wide columns

    Add test_table_auto_width() that checks for a table to behave the same
    way if one column is wider than its equal share of max_width compared
    to when all columns stay below that, assuming max_width is large enough
    to accomodate the complete table.
    
    Adjust auto_calculate_width() to keep the actual width if it's smaller
    than the new one with adjusted share. This fixes issue #28 and passes
    the new test.
    
    I'm not sure why the flagging by equally shared width is used, so I
    left it in. This may be improvable with more insight into what the
    width adjustment is meant to solve.
    Sideboard committed Oct 7, 2018
    Copy the full SHA
    7794a61 View commit details
    Browse the repository at this point in the history