summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2019-08-26Privatize deprecated functions functions for #87HEADmasterPierre-Henri Symoneaux
2019-08-26Merge pull request #114 from phsym/printstd-nopanicPierre-Henri Symoneaux
Remove panic in print_tty and return a Result
2019-08-26Integrate the new HTML printing with EvcxrJonas Bushart
* Add optional feature for Evcxr integration * Implement trait for everything which can be converted into a Tableslice. The trait prints the Tableslice in plain-text and HTML format in a Evcxr compatible manner.
2019-08-26Implement HTML output for Table and TableSliceJonas Bushart
* Add a HTML escaper to the utils class. * Expand TableSlice, Row, and Cell with HTML printing functions. These are implemented from scratch as they share almost nothing with the line based printing used for text, as HTML directly supports multiline cells. * Add tests to Cell and Table which test the new functionality.
2019-08-25Fixed a few clippy warnings (but not all)Pierre-Henri Symoneaux
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-27Updated README with new releasePierre-Henri Symoneaux
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-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-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-05-18Added the possibility to style the left and right border separately.Romain
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-18Updated README and examples with removal of the term cratePierre-Henri Symoneaux
Following changes made in #78
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-12-03Try to make macro works on rust releases 1.13 to 1.19Pierre-Henri Symoneaux
2017-12-03Fix #68 Trailing comma in macrosPierre-Henri Symoneaux
Now trailing commas are supported in macros and won't trigger an infinite recursion anymore during marco expansion
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-07Fixed broken build for rust 1.9.0 to 1.14.0Pierre-Henri Symoneaux
2017-06-07Added a few UTPierre-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-06Increase coveragePierre-Henri Symoneaux
2017-06-05Improving coverage, just for testingPierre-Henri Symoneaux
2017-06-05Added UT & fixed warningsPierre-Henri Symoneaux
+ fixed according to @hcpl comments
2017-06-05Updated according to @hcpl commentsPierre-Henri Symoneaux
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-05Make deprecation note and function name more clearhcpl
2017-06-04Retain existing public API but deprecate ithcpl
2017-06-04Add tests regarding paddinghcpl
2017-06-03Fix padding formattinghcpl
Line separators relied on (1, 1) padding.
2017-05-29Added category "command-line-interface" to Cargo.tomlPierre-Henri Symoneaux