summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
AgeCommit message (Collapse)Author
2019-08-25As suggested in #103, `printstd` should avoid panicking.Pierre-Henri Symoneaux
Thus, as an improvement, `printstd` now ignores errors, but don't return the printed size anymore. `print_tty` now returns a `Result` and can be used for better control.
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-24Merge branch 'master' into lines_countPierre-Henri Symoneaux
2018-09-24Verify returned table height in unit testsPierre-Henri Symoneaux
2018-09-23Added FORMAT_BOX_CHARSPierre-Henri Symoneaux
2018-09-22Printing a tables returns the number of printed linesPierre-Henri Symoneaux
2018-09-21cell and row mods become private. Row and Cell are reexported in crate's rootPierre-Henri Symoneaux
2018-09-21Moved CSV module into dedicated filePierre-Henri Symoneaux
2018-09-21Move all CSV stuff into dedicated modulePierre-Henri Symoneaux
2018-09-21Reexport types from crate `csv`Pierre-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-09-04Update csv to version 1Wolfgang Silbermayr
2018-08-12README: Document set_titles, use prettyformat::table, plus extra tests!Paul Fenwick
README: - Mention `set_titles()` - Explicitly `use prettytable::format` - Expand sample code to call `set_titles()` and `add_row()`s. lib.rs: - Added test from README code using the longhand FormatBuilder - Added test from README using FORMAT_NO_LINESEP_WITH_TITLE
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-09Added rustc 1.17.0 in travis build matrixPierre-Henri Symoneaux
2017-06-08Merge pull request #64 from phsym/convert_try_macro_usesPierre-Henri Symoneaux
Convert try macro uses
2017-06-08Merge pull request #63 from phsym/increase_coveragePierre-Henri Symoneaux
Added test cases
2017-06-07Converted all try! macro uses to ? operatorPierre-Henri Symoneaux
2017-06-07Added more testsPierre-Henri Symoneaux
2017-06-06Fix usage of non-unicode in unicode code.hcpl
From '|' (0x007C) to '│' (0x2502). And sorry for repetitive "code" in commit message :(
2017-06-05Added UT & fixed warningsPierre-Henri Symoneaux
+ fixed according to @hcpl comments
2017-06-05Customize indent in formatPierre-Henri Symoneaux
Closes #51
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-06-04Add tests regarding paddinghcpl
2017-05-29Applied rustfmt on codePierre-Henri Symoneaux
2017-05-29Converted all indentation tabs to 4 spacesPierre-Henri Symoneaux
Fixes #53
2017-05-29Revert and apply table format changeshcpl
* FORMAT_NO_LINESEP_WITH_TITLE: Because of how everywhere else the render has thin title separator: - code now behaves like the old version; - changed its rustdoc description. * FORMAT_NO_LINESEP: This format has no line separators, but this fact doesn't apply to borders. - add top and bottom separators; - update the corresponding example. * FORMAT_BORDERS_ONLY: - remove delimiter lines between non-titles.
2016-09-17cfg-out `csv` featureAlexander Bulaev
It pulls `rustc-serialize` which is not always desirable
2016-09-13Merge remote-tracking branch 'refs/remotes/nabijaczleweli/master'Pierre-Henri Symoneaux
Conflicts: Cargo.toml src/lib.rs
2016-09-13Updated atty version to ^0.2Pierre-Henri Symoneaux
2016-09-13Merge pull request #37 from phsym/unicode_separatorsPierre-Henri Symoneaux
Fixed wrong formatting of unicode separators
2016-09-12Add tests for CSVnabijaczleweli
2016-09-12Removed the "fork me" ribbon from documentationPierre-Henri Symoneaux
2016-09-12Fixed github forkme ribbon position in docPierre-Henri Symoneaux
#34
2016-09-12Added UT for unicode separatorsPierre-Henri Symoneaux
2016-09-12Fixed wrong formatting of unicode separatorsPierre-Henri Symoneaux
2016-09-12Implement saving and loading from CSVnabijaczleweli
Closes #13
2016-08-02Replace matches with Option::and_then()Matthias Beyer
2016-08-02Remove unneeded return statementsMatthias Beyer
2016-04-21Improvements to #27 (for #25)Pierre-Henri Symoneaux
2016-03-25Add some iters for use with rows to make formatting cells a bit easierWilliam Brown
2016-02-15Added github forkme ribbon to rustdocpierresy
2016-02-15Merge pull request #23 from phsym/detect_ttyPierre-Henri Symoneaux
Detect if stdout is a tty, and don't colorize table if it's not
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-02-14Fixed typopierresy