Skip to content

Commit

Permalink
add: table::content_arrangement()
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Oct 18, 2022
1 parent d0600af commit 619df96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Fix wrong LowerBoundary calculation. This was introduced in commit bee764d, when this logic was refactored. [#90](https://github.com/Nukesor/comfy-table/issues/90).
- `Table::column_iter` no longer requires a `&mut self`, but only `&self`.

### Added

- Expose current ContentArrangement for table via `table.content_arrangement`.

## [6.1.0] - 2022-08-28

### Added
Expand Down
5 changes: 5 additions & 0 deletions src/table.rs
Expand Up @@ -212,6 +212,11 @@ impl Table {
self
}

/// Get the current content arrangement of the table.
pub fn content_arrangement(&self) -> ContentArrangement {
self.arrangement.clone()
}

/// Set the delimiter used to split text in all cells.
///
/// A custom delimiter on a cell in will overwrite the column's delimiter.\
Expand Down

0 comments on commit 619df96

Please sign in to comment.