summaryrefslogtreecommitdiffstats
path: root/src/cell.rs
AgeCommit message (Collapse)Author
2019-08-25Updated to rust 2018Pierre-Henri Symoneaux
2019-01-09Fix macros for selective import via `use`Andreas Rottmann
Allow the import of any macro with `use` while not requiring the user to import macros that are invoked by the imported macro. This feature was add with Rust 1.30, so adjust the travis build and README accordingly. This fixes issue #99.
2018-10-24Improve code style (suggestion by clippy)xanonid
- usize never < 0 - convert transmute to casts - simplify condition
2018-09-21cell and row mods become private. Row and Cell are reexported in crate's rootPierre-Henri Symoneaux
2018-09-21Reexport types from crate `csv`Pierre-Henri Symoneaux
2018-09-20Added missing inlined doc about span style stringPierre-Henri Symoneaux
2018-09-19A bunch of deprecations before reducing functions visibilityPierre-Henri Symoneaux
2018-09-18Implemented horizontal spanPierre-Henri Symoneaux
Updated rust compatibility Fixed UT Added span support from macro Example + updated README Small update to README
2018-05-18Fixed cell width issues when using ANSI color codes.Romain
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.
2018-04-17Reexporting types used from the term crateHendrik Sollich
2018-02-19Added Hash & Eq derive. Implemented Extend on Row and TablePierre-Henri Symoneaux
2018-02-19Derive hash on public typesPierre-Henri Symoneaux
2017-06-08Merge pull request #64 from phsym/convert_try_macro_usesPierre-Henri Symoneaux
Convert try macro uses
2017-06-07Converted all try! macro uses to ? operatorPierre-Henri Symoneaux
2017-06-07Added a few UTPierre-Henri Symoneaux
2017-06-06Increase coveragePierre-Henri Symoneaux
2017-06-05Fixed lint (+clippy) warnings and line endingsPierre-Henri Symoneaux
Added some lint rustc checks and fixed warnings. Fixed some clippy warnings & errors Converted remaining CRLF line endings to LF
2017-05-29Applied rustfmt on codePierre-Henri Symoneaux
2017-05-29Converted all indentation tabs to 4 spacesPierre-Henri Symoneaux
Fixes #53
2016-10-01Ignore ColorOutOfRange term errorPierre-Henri Symoneaux
Fixes #40
2016-10-01Ignore term NotSupported error on reset when printing cellsPierre-Henri Symoneaux
Fixes #40
2016-08-21Remove extraneous return statementsMohamed Hayibor
2016-08-02Replace match with mappingMatthias Beyer
2016-08-02Remove unneeded return statementsMatthias Beyer
2016-02-14Don't fill the right part of final cell in a row when there is no right ↵pierresy
borer defined int the table format
2016-01-20Merge branch 'master' into ascription_fixpierresy
Conflicts: .travis.yml src/row.rs
2016-01-17Implemented padding customizationpierresy
2016-01-17Started format API refactoringpierresy
* Renamed Align enum to Alignment * Added left and right junction character customization * Added top and bottom lines customization * Added left and right borders customization
2016-01-15Changed token for cell stylepierresy
from colon (':') to arrow (`->`) in macro syntax
2016-01-11Ooops, restored those lines I deleted #16pierresy
2016-01-11Fixed windows issue for pull request #16pierresy
2016-01-11Bump term to 0.4Alexander Bulaev
2016-01-04Updated readme with some explanation about table slicing (#10)pierresy
2016-01-03Implemented print_align function for #12pierresy
Implemented print_align function to replace rust's std fill/align capability.
2015-11-19Reset style before applying new style from stringpierresy
2015-11-19Added unittest on table indexingpierresy
2015-11-19Added some unittests on style stringpierresy
2015-11-19Updated Cargo.toml and README.md.pierresy
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").
2015-11-09#2 : Improved macros, added some doc and updated readme.pierresy
2015-11-08#2 : Added a method to reset style on cellspierresy
2015-11-08#2 : Styles can be set in macros for simplicitypierresy
2015-11-07Issue #2 : Refactored codepierresy
2015-11-07Added dependency "term" and support to styles (color, etc ...)pierresy
2015-11-04Fixes for rust 1.4 (removed deprecated methods calls)pierresy
2015-08-12Updated crate version to 0.2.0pierresy
2015-08-12Added customizable alignmentpierresy
Added customizable alignment for text in cells (left, center, right). Also with additional small improvements
2015-07-09add unicode support into CellArthur Skobara
2015-06-19Added a small performance boost, valuable when printing really bigpierresy
tables
2015-06-10Capability to update row (append, insert, remove cells)pierresy
2015-06-10Improved the way tables are and can be createdpierresy