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

Fails with 'width must allow for borders' #28

Open
SButterfly opened this issue May 30, 2018 · 0 comments
Open

Fails with 'width must allow for borders' #28

SButterfly opened this issue May 30, 2018 · 0 comments

Comments

@SButterfly
Copy link

    @Override
    public String toString() {
        AsciiTable at = new AsciiTable();
        at.addRule();
        at.addRow(getHeaders());
        int lastLine = getLastLine();
        for (int i = 1; i <= lastLine; i++) {
            at.addRule();
            at.addRow(getValuesList(i));
        }
        at.addRule();

        return at.render();
    }

Stacktrace:

0 = {StackTraceElement@6467} "de.vandermeer.asciitable.CWC_AbsoluteEven.calculateColumnWidths(CWC_AbsoluteEven.java:45)"
1 = {StackTraceElement@6468} "de.vandermeer.asciitable.AT_Renderer.renderAsCollection(AT_Renderer.java:167)"
2 = {StackTraceElement@6469} "de.vandermeer.asciitable.AT_Renderer.render(AT_Renderer.java:128)"
3 = {StackTraceElement@6470} "de.vandermeer.asciitable.AT_Renderer.render(AT_Renderer.java:112)"
4 = {StackTraceElement@6471} "de.vandermeer.asciitable.AsciiTable.render(AsciiTable.java:185)"

What I did wrong ?

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

No branches or pull requests

1 participant