From 92c144e657ede392d0ae116bab85f197e64a65cd Mon Sep 17 00:00:00 2001 From: pierresy Date: Thu, 19 Nov 2015 09:54:38 +0100 Subject: Updated Cargo.toml and README.md. 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"). --- README.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f232ae6..2166d23 100644 --- a/README.md +++ b/README.md @@ -14,16 +14,6 @@ A formatted and aligned table printer written in rust. -# How to build - -As usual with Cargo project, simply run - -> cargo build - -And to build html documentation, run - -> cargo doc - # How to use ## Including @@ -76,7 +66,7 @@ This code will produce the following output : ## Using macros -To make the code simpler, the `table!` macro is there for you. The following code would produce the exact same output : +To make the code simpler, the `table!` macro is there for you. The following code would produce the same output : ```rust #[macro_use] extern crate prettytable; @@ -171,6 +161,10 @@ Or for each rows : ```rust table!([Frb -> "A", "B", "C"], [Frb -> 1, 2, 3, 4], [1, 2, 3]); ``` +Or a mix : +```rust +table!([Frb -> "A", "B", "C"], [Frb:1, Fgi:2, 3, 4], [1, 2, 3]); +``` ### List of style specifiers : -- cgit v1.2.3