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
Tables print with middle lines #43
Comments
Same with Sample:
Actual output:
|
Ok. The first one actually seems to be broken. The newline in between the horizontal rows isn't supposed to be there. However, in the I guess the |
Ah, right, the Yes, I think removing 'BORDERS' would be enough for that preset, plus fixing the sample (they're really useful!). That just leaves finding out what's causing the newlines in the first example. |
Ok. The preset samples were indeed a little imprecise. I rewrote the tests to actually use the sample text from the Anyhow, I'm open for a new preset!
In case you don't need it to be added to the crate, you can just take the preset string from above and import it in your table like this:
|
I agree with not breaking horizontal compatibility, and the current presets are fine as they are. I do think a new preset would be nice to have. Although harder to read, more compact presets are very useful when one expects to print many rows (50% fewer scrolling!). As for naming, my suggestion would be to use Thanks again! |
I like the |
Using
presets::ASCII_BORDERS_ONLY
, whose sample table is:I'm instead getting an empty middle row between each actual row:
This is with v4.0.1. Is this a bug? Or some row padding section I'm not seeing?
Thanks!
The text was updated successfully, but these errors were encountered: