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
libsmartcols: wrap does not work correctly in start/middle column #269
Comments
Yes, we do not use \n ... the problem is that we're trying to print all the cell when we print one line, but it's multi-line cell. The best would be to print a table line in a loop until there is any multi-line column and all cell data are not printed yet. The result should be something like:
... where CCC is WRAP column with multi-line cell on line 1. I'll try to implement it. It would be useful for more things. |
The initial implementation has been introduced by SCOLS_FL_WRAP columns, but this patch clean ups all and makes things more elegant. Note that use SCOLS_FL_TREE | SCOLS_FL_WRAP for a column is bad idea and I don't think we need to fix it. References: #269 Signed-off-by: Karel Zak <kzak@redhat.com>
... where FOO and TEXT are SCOLS_FL_WRAP columns with long text. |
But it works perfectly with last column:
The text was updated successfully, but these errors were encountered: