Age | Commit message (Collapse) | Author |
|
|
|
This commit adds a `utils::display_width` function, which is just a wrapper
around `UnicodeWidthStr::width` which also takes ANSI color codes into account.
This is required when creating cells from strings which are already colored
using ANSI color codes (instead of coloring the cells using styles). Since
color codes are of the form \u{1b}[ ... m, but UnicodeWidthStr::width only
takes the first \u{1b} into account, this would create cell width issues.
|
|
|
|
|
|
Added some lint rustc checks and fixed warnings.
Fixed some clippy warnings & errors
Converted remaining CRLF line endings to LF
|
|
|
|
|
|
|
|
Fixes #53
|
|
The feature is named `win_crlf`
Fixes #33
|
|
|
|
|
|
borer defined int the table format
|
|
* Renamed Align enum to Alignment
* Added left and right junction character customization
* Added top and bottom lines customization
* Added left and right borders customization
|
|
|
|
Implemented print_align function to replace rust's std fill/align capability.
|
|
Using style string don't panic anymore if some specifier are unknown.
Tables and Rows are now Indexable.
Empty rows are now correctly printed.
New lines use "\n" for all platforms except windows (which uses "\r\n").
|
|
Added customizable alignment for text in cells (left, center, right).
Also with additional small improvements
|
|
Code reorganisation : Created utils.rs private module
|