diff --git a/CHANGELOG.md b/CHANGELOG.md index dbce8a1..f28d77e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/table.rs b/src/table.rs index 8227b79..af19c1e 100644 --- a/src/table.rs +++ b/src/table.rs @@ -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.\