summaryrefslogtreecommitdiffstats
path: root/src/cell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cell.rs')
-rw-r--r--src/cell.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cell.rs b/src/cell.rs
index c41e800..bfe78c5 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -60,6 +60,12 @@ impl Cell {
return self;
}
+ /// Remove all style attributes and reset alignment to default (LEFT)
+ pub fn reset_style(&mut self) {
+ self.style.clear();
+ self.align(Align::LEFT);
+ }
+
pub fn style_spec(mut self, spec: &str) -> Cell {
let mut foreground = false;
let mut background = false;