From b24a359e0a768f48fe4792671fc415662d42fe86 Mon Sep 17 00:00:00 2001 From: Scott Hoyt Date: Fri, 5 Feb 2016 16:27:48 -0800 Subject: [PATCH] Update README --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 8c116a8..5054972 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,28 @@ print(tableString) Any `CustomStringConvertible` can be used for row `values`. +### Fence Custimization + +You can also customize the output of `TextTable.render()` by using different +values for `columnFence`, `rowFence`, and `cornerFence`. + +```swift +table.columnFence = ":" +table.rowFence = "." +table.cornerFence = "." + +print(table.render()) + +/* +................... +: foo : bar : baz : +................... +: 1 : 2 : : +: 11 : 22 : 33 : +................... +*/ +``` + ### Row Padding/Truncation When adding rows, `TextTable` will automatically pad the rows with empty strings