Skip to content

Commit

Permalink
Merge pull request #2 from scottrhoyt/custom_fences_readme
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
scottrhoyt committed Feb 6, 2016
2 parents 13ff957 + b24a359 commit d3ba931
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3ba931

Please sign in to comment.